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

Function deleteFromS3

apps/sim/lib/uploads/providers/s3/client.ts:281–290  ·  view source on GitHub ↗
(key: string, customConfig?: S3Config)

Source from the content-addressed store, hash-verified

279export async function deleteFromS3(key: string, customConfig: S3Config): Promise<void>
280
281export async function deleteFromS3(key: string, customConfig?: S3Config): Promise<void> {
282 const config = customConfig || { bucket: S3_CONFIG.bucket, region: S3_CONFIG.region }
283
284 await getS3Client().send(
285 new DeleteObjectCommand({
286 Bucket: config.bucket,
287 Key: key,
288 })
289 )
290}
291
292/** S3 `DeleteObjects` hard cap. */
293const S3_DELETE_OBJECTS_MAX_KEYS = 1000

Callers 2

client.test.tsFile · 0.90
deleteFileFunction · 0.85

Calls 2

getS3ClientFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected