Help Center/ Elastic Cloud Server/ User Guide/ Recycle Bin (OBT)/ Configuring a Recycle Bin Policy
Updated on 2025-08-28 GMT+08:00

Configuring a Recycle Bin Policy

Scenarios

After Recycle Bin is enabled, you can configure a recycle bin policy that includes:

  • The minimum number of days that must have passed after an ECS was created (the minimum ECS age) before it can be moved to the recycle bin upon deletion or unsubscription
  • A duration that deleted or unsubscribed ECSs can be kept in the recycle bin

    This rule only applies to the ECSs that are moved to the recycle bin after the rule is set.

Constraints

  • The number of days you can set for the recycle bin policy ranges from 1 to 1,000 days and defaults to 7 days.
  • ECSs in the recycle bin are kept for at least 1 hour and no more than 720 hours.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click . Under Compute, click Elastic Cloud Server.
  4. Click the Recycle Bin tab.
  5. In the upper right corner of the Recycle Bin tab, click Modify Policy.

    The Configure Recycle Bin Policy panel slides out.

  6. Configuring a recycle bin policy.
    • The minimum number of days that must have passed after an ECS was created (the minimum ECS age) before it can be moved to the recycle bin upon deletion or unsubscription The default value is 7 days.
      For example, if you set the minimum ECS age to 7 days, ECSs created 7 days ago will be moved to the recycle bin upon deletion or unsubscription and be billed on a pay-per-use basis. ECSs created within 7 days will not be moved to the recycle bin. They will be permanently deleted.

      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.

    • A duration that deleted or unsubscribed ECSs can be kept in the recycle bin The default value is 168 hours.

      If you set the retention duration to 168 hours, ECSs can be kept in the recycle bin for a maximum of 168 hours, after which they will be permanently deleted and cannot be recovered.

  7. Click OK.