Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created June 12, 2022 07:48
Show Gist options
  • Select an option

  • Save denzhel/0d92d7791fce7f146069f2463b164e74 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/0d92d7791fce7f146069f2463b164e74 to your computer and use it in GitHub Desktop.
remove all objects in aws s3 bucket

To remove all objects in AWS S3 bucket, use the following command for localstack:

aws --endpoint-url=http://localstack:4566 s3 rm s3://<bucketName> --recursive

Removing --endpoint-url will delete REAL S3 objects - BE CAREFUL.

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