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

Function deleteFileMetadata

apps/sim/lib/uploads/server/metadata.ts:229–235  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

227 * Delete file metadata by key
228 */
229export async function deleteFileMetadata(key: string): Promise<boolean> {
230 await db
231 .update(workspaceFiles)
232 .set({ deletedAt: new Date() })
233 .where(and(eq(workspaceFiles.key, key), isNull(workspaceFiles.deletedAt)))
234 return true
235}
236
237/**
238 * Fields needed to record a trusted storage-key -> workspace ownership binding

Callers 8

addDocumentFunction · 0.90
updateDocumentFunction · 0.90
route.tsFile · 0.90
deleteExecutionFilesFunction · 0.90
deleteLargeValueKeysFunction · 0.90

Calls 2

setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected