To delete an RDS Custom DB instance, do the following:
-
Provide the name of the DB instance.
-
Clear the option to take a final DB snapshot of the DB instance.
-
Choose or clear the option to retain automated backups.
You can delete an RDS Custom DB instance using the console or the CLI. The time required to delete the DB instance can vary depending on the backup retention period (that is, how many backups to delete) and how much data is deleted.
To delete an RDS Custom DB instance
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 RDS Custom DB instance that you want to delete. RDS Custom DB instances show the role Instance (RDS Custom).
-
For Actions, choose Delete.
-
To retain automated backups, choose Retain automated backups.
-
Enter
delete me
in the box. -
Choose Delete.
You delete an RDS Custom DB instance by using the delete-db-instance AWS CLI command. Identify the DB instance using the required parameter
--db-instance-identifier
. The remaining parameters are the same as for an Amazon RDS DB instance, with the
following exceptions:
-
--skip-final-snapshot
is required. -
--no-skip-final-snapshot
isn't supported. -
--final-db-snapshot-identifier
isn't supported.
The following example deletes the RDS Custom DB instance named my-custom-instance
, and retains automated
backups.
For Linux, macOS, or Unix:
aws rds delete-db-instance \ --db-instance-identifier
my-custom-instance
\ --skip-final-snapshot \ --no-delete-automated-backups
For Windows:
aws rds delete-db-instance ^ --db-instance-identifier
my-custom-instance
^ --skip-final-snapshot ^ --no-delete-automated-backups