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

Modifying the Recycling Policy

Scenarios

DDS allows you to move unsubscribed yearly/monthly DB instances and deleted pay-per-use DB instances to the recycle bin.

Precautions

  • The recycling policy is enabled by default and cannot be disabled. Instances in the recycle bin are retained for 7 days by default, and this will not incur any charges.
  • Operations after an instance is deleted
    • If there are fewer than 100 backups (including automated full backups) in the recycle bin, the system retains the automated full backup from one day prior if available; otherwise, the latest one is retained. The system will also generate a new full backup. You can select one of the backups to rebuild the instance.
    • If there are 100 or more backups (including automated full backups) in the recycle bin, the system retains the automated full backup from one day prior if available; otherwise, the latest one is retained. You can select this backup to rebuild the instance.
  • You can modify the retention period, and the changes only apply to the instances deleted after the changes, so exercise caution when performing this operation.
  • Recycling and backup cannot be performed when a node is in the UNKNOWN state.
  • If you delete an instance running out of storage, it will not be moved to the recycle bin.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. In the navigation pane on the left, choose Recycle Bin.
  5. 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). Then, click OK.

    Figure 1 Modify Recycling Policy