Forrest logo
back to the aws tool

aws-rds:tldr:7451e

aws-rds: Delete an instance.
$ aws rds delete-db-instance --db-instance-identifier ${instance_identifier} --final-db-snapshot-identifier ${snapshot_identifier} --delete-automated-backups
try on your machine

The command "aws rds delete-db-instance" is used to delete a relational database instance in Amazon RDS (Relational Database Service). It entirely removes the specified database instance, including all associated resources like storage, backups, and automated snapshots.

Here's an explanation of the different options used in the command:

  • --db-instance-identifier: It specifies the unique identifier for the database instance that needs to be deleted. The ${instance_identifier} is a placeholder for the actual identifier value, and you need to replace it with the real identifier.

  • --final-db-snapshot-identifier: This option is used to specify the name of the final DB snapshot to be created before deleting the database instance. The ${snapshot_identifier} is a placeholder for the desired snapshot identifier, which you need to provide.

  • --delete-automated-backups: This flag indicates whether the automated backups of the database instance should also be deleted. If this flag is specified, all automated backups associated with the instance will be permanently removed.

By executing this command with the appropriate values for the instance identifier, snapshot identifier, and the delete-automated-backups flag, you can delete a specific RDS database instance while also deciding whether to create a final snapshot and remove automated backups.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool