Yes, I know. There is no folder concept on s3 storage. but I really want to delete a specific folder from s3 with node.js. I tried two solutions, but both didn\'t work. My code
You can try this:
import { s3DeleteDir } from '@zvs001/s3-utils' import { S3 } from 'aws-sdk' const s3Client = new S3() await s3DeleteDir(s3Client, { Bucket: 'my-bucket', Prefix: `folder/`, })