Creating and removing Google Storage Buckets.
The gsutil tool can create Google Storage Buckets with ease after you have configured the Google gsutil client.
Examples of using the gsutil to create and remove Google Storage Buckets.
Base Syntax:
gsutil mb [-c class] [-l location] [-p proj_id] uri
[root@aodba /]# gsutil mb gs://test-bkt-aodba
Creating gs://test-bkt-aodba/...
[root@aodba /]# gsutil ls
gs://test-bkt-aodba/
[root@aodba /]# gsutil mb gs://bkt1-aodba gs://bkt2-aodba
Creating gs://bkt1-aodba/...
Creating gs://bkt2-aodba/...
[root@aodba /]# gsutil ls |grep aodba
gs://bkt1-aodba/
gs://bkt2-aodba/
gsutil rb [-f] url
[root@aodba /]# gsutil rb gs://test-bkt-aodba
Removing gs://test-bkt-aodba/...
[root@aodba tmp]# gsutil rb gs://bkt1-aodba/ gs://bkt2-aodba/
Removing gs://bkt1-aodba/...
Removing gs://bkt2-aodba/...