import { s3Client } from "./s3Client" ; import { FILES_BUCKET } from "../config.json" ; import { DeleteObjectCommand } from "@aws-sdk/client-s3" ; const deleteObject = async ( fileName ) => s3Client . send ( new DeleteObjectCommand ( { Key : fileName , Bucket : FILES_BUCKET , } ) ) ; export { deleteObject } ;