Learn how to delete and restore projects in Google Cloud.
Struggling with Google Cloud project clutter? In this tutorial, I show you how to safely delete old Google Cloud projects and—most importantly—how to restore them if you change your mind! Google Cloud provides a 30-day grace period, and I'll walk you through the entire process step-by-step.
Learn how to clean up your cloud environment without the fear of permanently losing something important. We'll cover the deletion process, the critical warnings you need to know, and the simple restore function that can be a real lifesaver.
How to Delete a Google Cloud Project
------------------------------------
1) Navigate to IAM & Admin:
Open the left-hand navigation menu in the Google Cloud Console.
Select "IAM & Admin".
Pro Tip: You can also simply type "IAM" into the search bar at the top and select it from the results.
2) Go to Manage Resources:
From the left-hand menu within IAM & Admin, click on "Manage Resources". This will display a list of all your projects.
3) Select Your Project:
From the list, click on the project you wish to delete. (In our demo, we deleted the project named dynamic-sun).
4) Review Project Details (Recommended):
Before deleting, review the project's roles and service agents listed on the page under "Policies" or "Principles" to understand what you are removing.
5) Initiate Deletion:
Click the "Delete" button at the top of the page.
6) Confirm Deletion:
A pop-up window will appear. To confirm, you must type the exact Project ID.
Remember: The project will enter a 30-day grace period and is not permanently deleted immediately.
7) Finalize:
Click "Shut Down". The project will now be removed from your active list and moved to "Pending deletion."
How to Restore a Project (Within 30 Days)
-----------------------------------------
1) Find Pending Deletions:
On the "Manage Resources" page, look for and click on the message that says "Resources pending deletion".
2) Select Project to Restore:
You will see a list of projects marked for deletion. Select the project you want to recover.
3) Restore the Project:
Click the "Restore" hyperlink at the top of the page.
4) Confirm Restoration:
A confirmation pop-up will appear. Click "Restore" to confirm.
5) Verify Restoration:
Navigate back to the main "Manage Resources" page and refresh it (Press F5). Your restored project will now appear back in your active projects list.
⚠️ Critical Warnings & Best Practices
--------------------------------------
Permanent Deletion: After the 30-day grace period, the project and all its resources are permanently deleted and cannot be recovered.
Billing: Projects may continue to incur charges for a short time after shutdown. To avoid unexpected charges, it is a best practice to disable billing for the project before shutting it down.
Immediate Impact: Traffic serving stops within a few hours, and you and your team will lose all access to the project immediately after deletion.
Notifications: The owners of the project will be notified via email and can stop the deletion within the 30-day window.
Resource Deletion Varies: Note that while the project exists for 30 days before permanent deletion, some resources within it may be deleted much earlier.
Subscribe for more Google Cloud tips and tutorials!
#google #GoogleCloud #GCP #CloudComputing #Tutorial #DevOps