gcloud alpha sql instances delete Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha sql instances delete - deletes a Cloud SQL instance
- SYNOPSIS
gcloud alpha sql instances deleteINSTANCE[--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
(ALPHA)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 allowedis 365 days. For instances managed by BackupDR, the maximum time allowed is 99years. 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 1and 365. For instances managed by BackupDR, the valid range is between 1 day and99 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 helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudsqlinstancesdeletegcloudbetasqlinstancesdelete
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.