Google Cloud Storage is one of the most reliable and efficient ways to store your data in the cloud. However, not everyone takes the time to sort and organize their data. So if you’ve run out of space or simply want to reduce your storage costs, it may be time to hit that delete button. Clearing out your Google Cloud storage is pretty straightforward.
This guide will teach you how to delete Google Cloud storage in 7 easy steps. You must pay careful attention to each step because once you’ve deleted your data, you can’t regain it. So, let’s get started.
Table of Contents
7 Steps To Delete Google Cloud Storage
With Google Cloud Storage, you can easily store and retrieve large amounts of data, quickly and reliably, without worrying about the underlying infrastructure. It provides a simple and intuitive web interface, command-line tools, and client libraries for various programming languages, making it easy to integrate with your applications and workflows.
The process is pretty straightforward when deleting files and folders in your cloud storage. This 7-step approach will help reduce your organization’s data storage costs overnight.
Step 1: Sign in to your Google Cloud Platform Account
Before deleting data, you must sign in to your Google Cloud Platform account. You will need to make one if you don’t already have an account. This won’t take long, and you can sign up here.
Once you’ve signed in, you can navigate to the Google Cloud Console.
Step 2: Navigate to Google Cloud Storage
To find the Google Cloud Console, simply use the navigation menu on the left-hand side of your console. You can find “Cloud Storage” under the “Storage” section.
If it isn’t immediately visible in the pinned options, you can access it directly in the Google Cloud Storage browser, and you’ll be able to find it.
Step 3: Select Your Storage Bucket
After navigating to Google Cloud Storage, you’ll see a list of all your storage buckets. Select the bucket that you want to delete. Finding a suitable data set may take time for people with multiple storage buckets. That’s why it can be helpful to sort your data regularly. You can always use the search bar to help you find your bucket quicker.
Step 4: Delete All Files in Your Bucket
A mistake many people make is trying to delete their bucket without emptying it. Before you can delete your bucket, you must delete all its files. There are several different ways to do this.
One option to delete data from a bucket is manually selecting the individual files and folders you want to delete. This can be time-consuming, particularly if you have many files to erase.
Another option is to use a command-line tool like gsutil, which can be used to delete multiple files and folders at once.
To delete data using gsutil, open a terminal window and navigate to the directory where gsutil is installed. Then, use the following command to delete the contents of a bucket:
gsutil rm -r gs://BUCKET_NAME
Replace <BUCKET_NAME> with the name of the bucket you want to delete data from. You can choose between two commands. The -m option tells gsutil to perform a parallel (multithreaded) operation, which can significantly speed up the deletion process. The -r option tells gsutil to delete all files and folders within the bucket recursively.
Gsutil is a command-line tool that allows you to interact with Google Cloud Storage. Here are some common gsutil commands:
- ‘gsutil cp’ – Copies files and objects to and from Google Cloud Storage.
- ‘gsutil ls’ – Lists objects in a bucket or bucket contents.
- ‘gsutil mb’ – Creates a new bucket.
- ‘gsutil rm’ – Deletes objects and buckets.
- ‘gsutil mv’ – Moves or renames objects and buckets.
- ‘gsutil du’ – Displays the total size of objects in a bucket or bucket contents.
- ‘gsutil setacl’ – Sets access control for a bucket or object.
- ‘gsutil versioning’ – Enables or disables versioning on a bucket.
- ‘gsutil defacl’ – Sets default access control for a bucket.
These are just a few examples of gsutil commands. You can find more information about gsutil commands and their usage in the Google Cloud Storage documentation.
Step 5: Delete Your Bucket
Once you have deleted the data from the bucket, you can then delete the bucket itself.
To do so, select the checkbox next to the bucket on the Cloud Storage Buckets page, then click the delete button.
A dialog box will appear, asking you to confirm the deletion by typing “DELETE“. Once you confirm the deletion, the bucket and all its contents will be permanently deleted.It’s important to note that it cannot be recovered once you delete a bucket. That’s why reviewing the bucket’s contents carefully before deleting them is incredibly important.
Step 6: Verify Deletion
While you can stop here, many users prefer to take an extra step and confirm that the bucket has been deleted. This won’t take long at all.
You can verify the deletion by checking the list of buckets on your Google Cloud Console. If the bucket you deleted no longer appears on the list, it’s been successfully deleted.
Step 7: Manage Your Google Cloud Storage Costs
You may assume that simply deleting the bucket is enough to help you reduce your Google Cloud Storage costs, but that isn’t always the case. While you are not being charged for the storage space of the deleted bucket, you may still be paying for other Google Cloud services.
You can manage your costs by going to the “Billing” tab in the Google Cloud Console. This section will give you a complete breakdown of your costs and expenses. Adjusting your settings in the billings tab is the best way to reduce your data storage costs.
Keeping your Google Cloud Storage organized is extremely important if you want to manage your data responsibly and cut down on costs. While it may seem complex to a new user, deleting a Google Cloud Storage bucket is extremely simple.
Following the steps outlined in this guide will help you find the right bucket, delete it quickly, and ensure that your data is no longer stored in the cloud. You can save time using the gsutil command to select manually to ensure you pick the right files and folders. Carefully reviewing the bucket’s contents helps ensure that important data is not lost.
Also, remember to manage your Google Cloud costs in the billing section after deleting your bucket. This helps ensure you’re not paying for storage or services you no longer need.
But what if you want to delete your entire Google Cloud Platform account? For some users deleting a few buckets simply won’t do the trick. When you want to start from scratch, it can be easier to delete your entire account simply.
You can follow the steps outlined in the Google Cloud Platform documentation or contact Google Cloud Platform support for assistance.
Thank you for reading my blog.
If you have any questions or feedback, please leave a comment.