- INFORMATION
-
gcloud sql instances delete
is not available in universe domainuniverse
. - NAME
-
- gcloud sql instances delete - deletes a Cloud SQL instance
- SYNOPSIS
-
-
gcloud sql instances delete
INSTANCE
[--async
] [--enable-final-backup
] [--final-backup-description
=FINAL_BACKUP_DESCRIPTION
] [--final-backup-expiry-time
=FINAL_BACKUP_EXPIRY_TIME
|--final-backup-retention-days
=FINAL_BACKUP_RETENTION_DAYS
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Deletes a Cloud SQL instance.
- POSITIONAL ARGUMENTS
-
INSTANCE
- Cloud SQL instance ID.
- FLAGS
-
--async
- Return immediately, without waiting for the operation in progress to complete.
--enable-final-backup
- Enables the final backup to be taken at the time of instance deletion.
--final-backup-description
=FINAL_BACKUP_DESCRIPTION
- Provides description for the final backup going to be taken.
-
At most one of these can be specified:
--final-backup-expiry-time
=FINAL_BACKUP_EXPIRY_TIME
- Specifies the time at which the final backup will expire. Maximum time allowed is 365 days. For instances managed by BackupDR, the maximum time allowed is 99 years. Format: YYYY-MM-DDTHH:MM:SS.
--final-backup-retention-days
=FINAL_BACKUP_RETENTION_DAYS
- Specifies number of days to retain final backup. The valid range is between 1 and 365. For instances managed by BackupDR, the valid range is between 1 day and 99 years. Default value is 30 days.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
These variants are also available:
gcloud alpha sql instances delete
gcloud beta sql instances delete
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[],[]]