gsutil rm -r gs://my-bucket/

Category: Google Cloud & Workspace

gsutil rm -r gs://my-bucket/

Delete a bucket and all its contents

Recursively deletes every object in my-bucket and then the bucket itself, destroying all data with no recovery path. This is one of the most destructive commands in the glossary, so double-check the bucket name and consider enabling versioning first. Add -m to parallelize deletion of large buckets.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.