Fetch, preview, upload and delete files from your AWS S3 bucket.
import { Resource } from "https://deno.land/x/[email protected]/mod.ts";
import { S3Client } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(s3: Resource<"s3">, object_name: string) {
const s3client = new S3Client(s3);
return await s3client.deleteObject(object_name)
}