All Products
Search
Document Center

ApsaraDB RDS:Enable or disable the release protection feature

Last Updated:Mar 28, 2026

Release protection prevents pay-as-you-go and Serverless RDS instances from being accidentally deleted — either through the console or via API. Enable it for any instance running production workloads.

Prerequisites

Before you begin, ensure that you have:

How release protection works

When release protection is enabled, any attempt to delete the instance is blocked:

  • Console: The console returns an error indicating that the delete operation failed.

  • API: Calling the DeleteDBInstance operation returns an error indicating that the delete operation failed.

Limitations

Release protection does not prevent automatic release in the following cases:

CaseReason
Your account has an overdue payment for more than 15 daysAlibaba Cloud reclaims resources to recover unpaid costs. Release protection does not override account-level enforcement.
The instance does not comply with security compliance policiesCompliance-triggered releases are initiated by platform policy, not by user action.

To avoid unexpected loss in these cases, back up your data regularly and keep your account balance positive.

Enable release protection when creating an instance

When creating an instance in the console, or by calling CreateDBInstance or CloneDBInstance, set the DeletionProtection parameter to enable release protection. For the CreateDBInstance API reference, see CreateDBInstance. For the CloneDBInstance API reference, see CloneDBInstance.

To enable release protection in the console during instance creation:

Note

This section covers only the release protection setting. For the full instance creation procedure, see Create and use an ApsaraDB RDS for SQL Server instance.

  1. Go to the ApsaraDB RDS buy page.

  2. Set Billing Method to Pay-as-you-go or Serverless.

  3. In the More section, select Prevents instances from being unexpectedly deleted by using the console or calling an API operation.

image
  1. Configure the remaining parameters based on your requirements.

Enable or disable release protection on an existing instance

To change the release protection setting using the console, use the ModifyDBInstanceDeletionProtection operation. For API details, see ModifyDBInstanceDeletionProtection.

Important

Before deleting an instance, make sure release protection is turned off. If protection is enabled, the delete operation will fail.

  1. Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where the instance resides.

  2. On the Instances page, find the target instance. In the Actions column, click More > Change Release Protection Settings.

  3. In the dialog box, turn on or turn off Release Protection.

  4. Click OK.

Check release protection status

  1. Go to the Instances page. In the top navigation bar, select the region where the instance resides. Click the instance ID.

  2. On the Basic Information page, check the Release Protection parameter in the Configuration Information section.

释放保护