Deleting a Multi-AZ DB cluster - Amazon Relational Database Service

Deleting a Multi-AZ DB cluster

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 certain factors. These are the backup retention period (that is, how many backups to delete), how much data is deleted, and whether a final snapshot is taken.

You can't delete a Multi-AZ DB cluster when deletion protection is turned on for it. For more information, see Deletion protection. You can turn off deletion protection by modifying the Multi-AZ DB cluster. For more information, see Modifying a Multi-AZ DB cluster.

To delete a Multi-AZ DB cluster

  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, choose Databases, and then choose the Multi-AZ DB cluster that you want to delete.

  3. For Actions, choose Delete.

  4. 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.

  5. Choose Retain automated backups to retain automated backups.

  6. Enter delete me in the box.

  7. 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-identifier mymultiazdbclusterfinalsnapshot

For Windows:

aws rds delete-db-cluster ^ --db-cluster-identifier mymultiazdbcluster ^ --final-db-snapshot-identifier mymultiazdbclusterfinalsnapshot

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 or SkipFinalSnapshot