Updated on 2026-02-13 GMT+08:00

Configuring a Recycle Bin Policy

Scenarios

After enabling the recycle bin, you can customize the recycle bin policy to determine when to move unsubscribed or deleted disks to the bin.

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 bin, you can configure an appropriate 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.
  • 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.

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

Constraints

  • By default, disks created at least 7 days ago will be moved to the recycle bin upon deletion or unsubscription. You can customize the value, up to a maximum of 1,000 days.
  • You can configure a retention duration up to 365 days for the disks in the recycle bin. The default retention duration is 7 days.
  • When the OS of a server 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 passed since disk creation with the days configured in the recycle bin policy.

Procedure

  1. Sign in to the EVS console.
  2. Click the Recycle Bin tab.
  3. In the upper right corner of the Recycle Bin tab page, click Modify Policy.

    The Configure Recycle Bin Policy page is displayed.

    Figure 1 Modify Policy

  4. Configure the recycle bin policy.

    Table 1 Recycle bin policy parameters

    Parameter

    Example Value

    Description

    Number of days since disk creation

    1

    If disks were created more than this number of days ago, they will be moved to the recycle bin upon deletion or unsubscription.

    For example, if you set this parameter to 1, disks created within 1 day will not be moved to the recycle bin upon deletion, but deleted permanently. Disks created more than 1 day ago will be moved to the recycle bin upon deletion and billed on a pay-per-use basis.

    NOTE:

    If you use both ECS and EVS recycle bins, you are advised to configure the same minimum number of days for moving ECSs and EVS disks to the recycle bins to avoid issues brought by different lifecycles. For details, see Recycle Bin Policy Configuration Suggestions.

    Number of days disks can be retained

    10

    The maximum number of days that disks can be retained in the recycle bin. When a disk stays longer than the days you specify, it will be automatically deleted.

    For example, if you set this parameter to 10, disks can stay in the recycle bin for up to 10 days. After that, the disks will be automatically deleted and cannot be recovered.

  5. Click OK. Then, disks will be moved to the recycle bin upon deletion or unsubscription and deleted permanently based on the recycle bin policy.

Related Links

You can manually recover or permanently delete disks in the recycle bin.