diff --git a/knowledge base/gsutils.md b/knowledge base/gsutils.md new file mode 100644 index 0000000..37a2abd --- /dev/null +++ b/knowledge base/gsutils.md @@ -0,0 +1,17 @@ +# Gsutils + +## TL;DR + +```shell +# 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] + +[deleting buckets]: https://cloud.google.com/storage/docs/deleting-buckets