MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / deleteFiles

Function deleteFiles

apps/web/services/aws/s3.ts:50–63  ·  view source on GitHub ↗
(
  Objects: {
    Key: string;
  }[]
)

Source from the content-addressed store, hash-verified

48}
49
50export async function deleteFiles(
51 Objects: {
52 Key: string;
53 }[]
54) {
55 const command = new DeleteObjectsCommand({
56 Bucket,
57 Delete: {
58 Objects,
59 Quiet: true,
60 },
61 });
62 return await s3Client.send(command);
63}
64
65const getMimeType = (ext: string) => {
66 const mimes: Record<string, string> = {

Callers 1

processAttachmentsFunction · 0.90

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected