MCPcopy Index your code
hub / github.com/compiler-explorer/compiler-explorer / delete

Method delete

lib/s3-handler.ts:62–70  ·  view source on GitHub ↗
(key: string, path: string)

Source from the content-addressed store, hash-verified

60
61 // Unused?
62 async delete(key: string, path: string): Promise<boolean> {
63 try {
64 await this.instance.deleteObject({Bucket: this.bucket, Key: `${path}/${key}`});
65 } catch (x: any) {
66 if (x instanceof NoSuchKey) return false;
67 throw x;
68 }
69 return true;
70 }
71
72 async put(key: string, value: Buffer, path: string, options: S3HandlerOptions): Promise<void> {
73 await this.instance.putObject({

Callers 12

removeMethod · 0.80
getCompilersForLangMethod · 0.80
getLibsForLangMethod · 0.80
getToolsForLangMethod · 0.80
populateMethod · 0.80
enqueueMethod · 0.80
setupMcpEndpointFunction · 0.80
handleAcknowledgmentMethod · 0.80
setupAckTimeoutMethod · 0.80
sendWithRetryMethod · 0.80
mcp-tests.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected