gcloud sql instances delete my-db

Category: Google Cloud & Workspace

gcloud sql instances delete my-db

Delete a Cloud SQL instance

Permanently removes the instance, its databases and its automatic backups with no recovery, so export critical data first with gcloud sql export sql. Instances with deletion protection enabled refuse the operation until you disable it with gcloud sql instances patch my-db --deletion-protection=false. Verify the instance name with gcloud sql instances list before running.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.