MCPcopy Index your code
hub / github.com/simstudioai/sim / deleteTable

Function deleteTable

apps/sim/lib/table/service.ts:601–608  ·  view source on GitHub ↗
(tableId: string, requestId: string)

Source from the content-addressed store, hash-verified

599 * @param requestId - Request ID for logging
600 */
601export async function deleteTable(tableId: string, requestId: string): Promise<void> {
602 await db
603 .update(userTableDefinitions)
604 .set({ archivedAt: new Date(), updatedAt: new Date() })
605 .where(eq(userTableDefinitions.id, tableId))
606
607 logger.info(`[${requestId}] Archived table ${tableId}`)
608}
609
610/**
611 * Restores an archived table.

Callers 5

executeFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 3

infoMethod · 0.80
setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected