Delete a bucket and remove all the objects in it

gsutil

  • The gsutil CLI lets you access Google Cloud Storage from the command line.
    You can use gsutil to do a wide range of bucket and object management tasks.
    More information: <https://cloud.google.com/storage/docs/gsutil>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gsutil rm -r gs://{{bucket_name}}

click the source code to copy install gsutil on any operating system with command-not-found.com