Remove all files under a folder Google Cloud Storage
The easiest way would be to use the command-line utility, gsutil. This command will delete them all:
gsutil -m rm gs://BUCKET_NAME/**
If you want to delete the bucket as well, you could do this instead:
gsutil -m rm -R gs://BUCKET_NAME
I came across this problem myself a month or so ago, I had > 800,000 files to delete from a bucket.
After a lot of searching around, and an email to the GCS team, I found that the best way was to get GCS to delete the files for me by setting an Object Lifecycle Management policy to expire all of the files.
The only downside is that this method is not instant, it can take up to 24 hours until the files expire and are deleted, but once setup it will happen automatically.