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.
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.