Skip to content

Conversation

@kunwar97
Copy link

No description provided.

}
};

objects?.Contents?.forEach((content) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will have to check if the content is of type file or directory.

if (objects?.Contents?.length === 0) return;

const deleteParams: S3.Types.DeleteObjectsRequest = {
Bucket: this.BUCKET,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants