Updated on 2024-11-07 GMT+08:00

Configuring a Recycle Bin Policy

Scenarios

If you have configured scaling policies for your workloads, the system may frequently delete EVS disks. At the same time, if you have also enabled EVS recycle bin, but do not want these frequently deleted disks to be moved to the recycle bin, you can configure a recycle bin policy to reduce unintended costs.

Example scenarios:

  • Scenario 1: You have used Auto Scaling to dynamically scale services. The system may frequently delete disks based on the configured scaling policy. In this case, you can configure an appropriate recycle bin policy based on the scaling cycle to avoid moving any unintended disks to the recycle bin.
  • Scenario 2: You have used Cloud Container Engine (CCE) to run workloads. The system may frequently delete disks based on the configured container scaling policy. In this case, you can configure an appropriate recycle bin policy based on the scaling cycle to avoid moving any unintended disks to the recycle bin.

These examples are for your reference only. You can configure an appropriate policy based on your own service scenario.

Notes and Constraints

The number of days you can set for the recycle bin policy ranges from 7 to 1,000 days and defaults to 7 days.

When the OS of an ECS is reinstalled, a new system disk will be created to replace the original one. EVS determines whether to move the original disk to the recycle bin by comparing the number of days elapsed since disk creation with the days configured in the recycle bin policy.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and choose Storage > Elastic Volume Service.

    The Elastic Volume Service page is displayed.

  3. Click the Recycle Bin tab.
  4. In the upper right corner of the Recycle Bin tab page, click Configure Policy.

    The Configure Recycle Bin Policy page is displayed.

    Figure 1 Configure Policy

  5. Set the minimum number of days that must elapse after a disk was created before it can be moved to the recycle bin upon deletion or unsubscription.

    For example, if you set 7 days for the recycle bin policy, EVS disks created within 7 days will not be moved to the recycle bin upon deletion and will be deleted permanently. EVS disks created at least 7 days ago will be moved to the recycle bin upon deletion and billed on a pay-per-use basis.

  6. Click Confirm.