removeRow
uses tcmts.studio.editableCodebase, which uses tcmts.share.servedCodebase, which uses process
Delete row id of table.
import { deleteRow } from "#codebase/tcmts/cli/data_pages"; import { HttpError } from "#codebase/tcmts/server"; import { editableCodebase } from "#codebase/tcmts/studio"; export async function removeRow(table: string, id: string): Promise<void> { const cb = editableCodebase(); if (!deleteRow(cb, table, id)) throw new HttpError(404, `${table} has no row ${id}.`); }