Deleting an object from a cloud storage bucket.

0 votes
How do I delete an object from the cloud storage bucket?
Oct 24, 2019 in GCP by anonymous
• 10,080 points
90 views

1 answer to this question.

0 votes

Use the gsutil rm command:

gsutil rm gs://[BUCKET_NAME]/[OBJECT_NAME]

Where:

  • [BUCKET_NAME] is the name of the bucket containing the object you want to delete. For example, my-bucket.

  • [OBJECT_NAME] is the name of the object you want to delete. For example, pets/dog.png.

If successful, the response looks like the following example:

Operation completed over 1 objects.
answered Oct 24, 2019 by Sirajul
• 52,930 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Mounting a Google cloud storage bucket to a GKE pod as a persistent disk.

Yes, its possible. There's a similar project,follow ...READ MORE

answered Oct 16, 2019 in GCP by Sirajul
• 52,930 points
2,508 views
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9, 2019 in GCP by Sirajul
• 52,930 points
272 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10, 2019 in GCP by Sirajul
• 52,930 points
794 views
0 votes
1 answer
0 votes
1 answer

uploading an object into the cloud storage bucket.

Suppose you want to upload an image ...READ MORE

answered Oct 23, 2019 in GCP by Sirajul
• 52,930 points
100 views