Updated on 2026-11-17 GMT+08:00

Recycle Bin

Scenarios

RDS allows you to move unsubscribed yearly/monthly instances and deleted pay-per-use instances to the recycle bin. You can rebuild a DB instance that was deleted up to 7 days ago from the recycle bin.

If resources are not renewed after expiration, you can rebuild DB instances from the recycle bin to restore data.

Constraints

  • Only single-node and primary/standby instances can be moved to the recycle bin; read replicas cannot.
  • A stopped instance will not be moved to the recycle bin after being deleted.
  • The recycle bin is enabled by default and cannot be disabled.
  • After an instance is deleted, the system keeps the most recent automated full backup of the previous day. If there is no automated full backup generated on that day, it retains the latest available one. A full backup is also triggered upon deletion. You can choose either backup to rebuild the instance.
  • Instances in the recycle bin are retained for 7 days by default. A new recycling policy only applies to DB instances that were put in the recycle bin after the new policy was put into effect. For DB instances that were in the recycle bin before the modification, the original recycling policy takes effect.

Billing

  • After an instance without CBR snapshot backup enabled is deleted, its physical backups managed in the recycle bin are not billed.
  • After an instance with CBR snapshot backup enabled is deleted, its snapshot backups managed in the recycle bin are billed based on the CBR backup pricing rules within the retention period.

Procedure

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. In the navigation pane on the left, choose Recycle Bin.
  4. On the Recycle Bin page, click Modify Recycling Policy. In the displayed dialog box, set the retention period for the deleted DB instances (range: 1 to 7 days).
  5. Then, click OK.

    Figure 1 Modifying the recycling policy

You can rebuild primary instances in the recycle bin within the retention period.

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. In the navigation pane on the left, choose Recycle Bin.
  4. On the Recycle Bin page, locate the target DB instance to be rebuilt and click Rebuild in the Operation column.
  5. In the displayed dialog box, locate a backup and click Rebuild in the Operation column.

    Figure 2 Rebuilding an instance

    After an instance is deleted, the system keeps the most recent automated full backup of the previous day. If there is no automated full backup generated on that day, it retains the latest available one. A full backup is also triggered upon deletion. You can choose either backup to rebuild the instance.

  6. On the Rebuild DB Instance page, configure required information and click Buy to submit the rebuild task. For details, see Rebuilding an Instance.