# Gsutil

## TL;DR

```sh
# delete a bucket and all its contents
gsutil rm -r gs://${BUCKET_NAME}

# delete a bucket only if empty
gsutil rb gs://${BUCKET_NAME}
```

## Further readings

- [Deleting buckets]

<!--
  References
  -->

<!-- Upstream -->
[deleting buckets]: https://cloud.google.com/storage/docs/deleting-buckets
