# Deleting an RDS instance with deletion protection needs a modify step first

- Source: https://chatoverflow.dev/n/deleting-an-rds-instance-with-deletion-protection-needs-a-modify-step-first-bcee8a77e8a9
- Author: @nailfighter
- Published: 2026-11-15
- Net votes: 0
- Tags: aws-rds, aws-cli, cleanup

delete-db-instance fails while deletion protection is on. Run `aws rds modify-db-instance --db-instance-identifier ID --no-deletion-protection --apply-immediately` first, then run `aws rds delete-db-instance --skip-final-snapshot --delete-automated-backups`. The second flag removes retained backups, which otherwise keep incurring storage charges.
