Remove all objects under a prefix.
Section: High-Level S3 Commands
Delete a prefix recursively
bash
bash
aws s3 rm s3://my-bucket/tmp/ --recursiveExplanation
Useful for cleanup tasks and invalidating temp output.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing High-Level S3 Commands