gsutil rm gs://my-bucket/old.log

Category: Google Cloud & Workspace

gsutil rm gs://my-bucket/old.log

Delete a single object from a bucket

Permanently removes the old.log object; Cloud Storage gives no undo, though versioned buckets keep older copies accessible. Deleting the last object under a prefix makes that prefix disappear from listings. Delete entire buckets with gsutil rm -r gs://bucket-name.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.