MCPcopy Create free account
hub / github.com/ShipSecAI/studio / delete

Method delete

backend/src/storage/files.repository.ts:70–77  ·  view source on GitHub ↗
(id: string, options: FileQueryOptions = {})

Source from the content-addressed store, hash-verified

68 }
69
70 async delete(id: string, options: FileQueryOptions = {}): Promise<void> {
71 const conditions: SQL[] = [eq(files.id, id)];
72 if (options.organizationId) {
73 conditions.push(eq(files.organizationId, options.organizationId));
74 }
75
76 await this.db.delete(files).where(and(...conditions));
77 }
78}

Callers 15

stopTrackingMethod · 0.45
dequeueCorrelationIdMethod · 0.45
handleEventToggleFunction · 0.45
toggleHostFunction · 0.45
arePropsEqualFunction · 0.45
ToastProviderFunction · 0.45
toggleServerFunction · 0.45
toggleServerFunction · 0.45
removeEventListenerMethod · 0.45
handleSaveFunction · 0.45

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected