Deleting a Multi-AZ DB cluster for Amazon RDS
You can delete a DB Multi-AZ DB cluster using the AWS Management Console, the AWS CLI, or the RDS API.
The time required to delete a Multi-AZ DB cluster can vary depending on the following factors:
-
Thee backup retention period (that is, how many backups to delete).
-
How much data is deleted.
-
Whether a final snapshot is taken.
Deletion protection must be disabled on the Multi-AZ DB cluster before you can delete it. For more information, see Prerequisites for deleting a DB instance. You can disable deletion protection by modifying the Multi-AZ DB cluster. For more information, see Modifying a Multi-AZ DB cluster for Amazon RDS.
To delete a Multi-AZ DB cluster
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/
. -
In the navigation pane, choose Databases, and then choose the Multi-AZ DB cluster that you want to delete.
-
For Actions, choose Delete.
-
Choose Create final snapshot? to create a final DB snapshot for the Multi-AZ DB cluster.
If you create a final snapshot, enter a name for Final snapshot name.
-
Choose Retain automated backups to retain automated backups.
-
Enter
delete me
in the box. -
Choose Delete.
To delete a Multi-AZ DB cluster by using the AWS CLI, call the delete-db-cluster command with the following options:
--db-cluster-identifier
--final-db-snapshot-identifier
or--skip-final-snapshot
Example With a final snapshot
For Linux, macOS, or Unix:
aws rds delete-db-cluster \ --db-cluster-identifier
mymultiazdbcluster
\ --final-db-snapshot-identifiermymultiazdbclusterfinalsnapshot
For Windows:
aws rds delete-db-cluster ^ --db-cluster-identifier
mymultiazdbcluster
^ --final-db-snapshot-identifiermymultiazdbclusterfinalsnapshot
Example With no final snapshot
For Linux, macOS, or Unix:
aws rds delete-db-cluster \ --db-cluster-identifier
mymultiazdbcluster
\ --skip-final-snapshot
For Windows:
aws rds delete-db-cluster ^ --db-cluster-identifier
mymultiazdbcluster
^ --skip-final-snapshot
To delete a Multi-AZ DB cluster by using the Amazon RDS API, call the DeleteDBCluster operation with the following parameters:
-
DBClusterIdentifier
-
FinalDBSnapshotIdentifier
orSkipFinalSnapshot