All Products
Search
Document Center

ApsaraDB RDS:Release or unsubscribe from an instance

Last Updated:Aug 18, 2026

When you no longer need an ApsaraDB RDS for MySQL instance, you can release or unsubscribe from it to stop billing. The action depends on your billing model: release a pay-as-you-go or serverless instance, or unsubscribe from a subscription instance.

Prerequisites

Before you begin, confirm the following:

  • Billing model: Identify whether your instance uses pay-as-you-go, serverless, or subscription billing. The action you take differs by billing model.

  • Suspension state: A pay-as-you-go instance in the Suspended state cannot be released directly. Restart the instance first, or call the DeleteDBInstance API operation.

  • Last read-only instance: To release or unsubscribe from the last read-only instance attached to a primary instance, first disable read/write splitting on the primary instance.

  • After you unsubscribe from a subscription instance, it enters a locked state. It remains visible in the console but billing stops. You must destroy the instance in the recycle bin to permanently remove it from the console.

  • Data backup: Releasing or unsubscribing from an instance permanently deletes its data in most cases. Back up the instance before proceeding, then download the backup files to local storage.

What happens after you release or unsubscribe

Recycle bin

The following instances are moved to the recycle bin after release or unsubscription. You can unlock and rebuild them from the recycle bin:

  • Subscription instances that expire or are manually unsubscribed from

  • Pay-as-you-go instances that are manually released

  • Serverless instances that are manually released

Not all instances meet the requirements for the recycle bin. For details, see Manage ApsaraDB RDS for MySQL instances in the recycle bin.

Data retention

Your data outcome depends on whether you configured backup retention before releasing or unsubscribing:

Scenario What happens
Backup Retention Policy After Release is configured Backup files are retained after the instance is released. Download them from the console. If the parameter is set to Latest or All, backup storage fees continue to apply. To stop charges, delete the backup files.
Cross-region backup is enabled and the instance is within the retention period Cross-region backup files are retained.
Neither of the above Instance data is immediately and permanently deleted. This cannot be undone.

Read-only instances

When you release or unsubscribe from a primary instance, all associated read-only instances — both pay-as-you-go and subscription — are automatically deleted. Payments for subscription read-only instances are refunded.

Subscription instances in the console

After you unsubscribe from a subscription instance, it is locked and no further fees are charged. The instance remains visible in the ApsaraDB RDS console until you destroy it in the recycle bin.

Pre-release check

Before you release an instance, we recommend that you check the number of active connections to avoid service interruptions caused by business connections that were not properly closed.

  1. In the left-side navigation pane of the ApsaraDB RDS console, choose O&M and Monitoring > Performance Monitoring to view session connection metrics.

  2. Alternatively, click Log On to Database on the instance list page to go to DMS and run the SHOW PROCESSLIST command to check real-time connections.

  3. After you confirm that no active business connections exist, proceed to release the instance.

Note

In cross-account data migration scenarios, the source instance may still have residual DTS connections after migration is complete. Make sure that you verify the connection count before releasing the instance.

Release or unsubscribe from a primary instance

Release a pay-as-you-go or serverless primary instance

  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 your instance resides.

  2. Use either of the following methods to release the instance:

    • Method 1: Find the instance. In the Actions column, choose More > Release Instance.实例列表释放按量付费实例

    • Method 2: Find the instance and click its ID. On the Basic Information page, go to the Status section and click Release Instance.Submit a ticketSubmit a ticket

  3. In the dialog box, click Yes.

Unsubscribe from a subscription primary instance

Use any of the following methods to unsubscribe from a subscription instance.

From the Unsubscriptions page

Go to the Resource Unsubscription page and submit a ticketticketticketticketticketticketticket to apply for unsubscription.

Log on to the Unsubscription Management page and submit a ticket to request unsubscription from the subscription instance.

Log on to the Unsubscription Management page and submit a ticket to request unsubscription from the subscription instance.

From the Basic Information page

  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 your instance resides.

  2. Find the instance and click its ID. On the Basic Information page, go to the Status section and click Cancellation of Instance Subscription to open the Resource Unsubscription page. Submit a ticketticketticketticketticketticketticket to apply for unsubscription.

From the instance list

  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 your instance resides.

  2. Find the instance. In the Actions column, choose More > Cancellation of Instance Subscription. In the dialog box, click OK to open the Resource Unsubscription page. Submit a ticketticketticketticketticketticketticket to apply for unsubscription.

Release or unsubscribe from a read-only instance

Release a pay-as-you-go read-only instance

  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 your instance resides.

  2. Use either of the following methods to release the instance:

    • Method 1: Find the read-only instance. In the Actions column, choose More > Release Instance.实例列表释放按量付费实例

    • Method 2: Find the read-only instance and click its ID. On the Basic Information page, click Release Instance.实例基本信息释放按量付费实例

  3. In the dialog box, click OK.

Unsubscribe from a subscription read-only instance

Use any of the following methods to unsubscribe from a subscription read-only instance.

From the Unsubscriptions page

Go to the Resource Unsubscription page and submit a ticketticketticketticketticketticketticket to apply for unsubscription.

From the Basic Information page

  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 your instance resides.

  2. Find the read-only instance and click its ID. On the Basic Information page, go to the Status section and click Cancellation of Instance Subscription to open the Resource Unsubscription page. Submit a ticketticketticketticketticketticketticket to apply for unsubscription.

From the instance list

  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 your instance resides.

  2. Find the read-only instance. In the Actions column, choose More > Cancellation of Instance Subscription. In the dialog box, click OK to open the Resource Unsubscription page. Submit a ticketticketticketticketticketticketticket to apply for unsubscription.

Automatic deletion

When you release or unsubscribe from a primary instance, all its read-only instances are automatically deleted and subscription payments are refunded. No separate action is required.

FAQ

Will releasing a read-only instance interrupt my workloads?

Yes. Releasing or unsubscribing from a read-only instance interrupts traffic routed to it.

  • Database proxy enabled: Set the read weight of the read-only instance to 0 before releasing it. Existing cached connections to that instance remain valid, but new connections are needed to route read requests to other read-only instances.

  • Database proxy disabled: Update your application connection settings to replace the endpoint of the released read-only instance with another read-only instance or the primary instance.

How do I recover data after releasing or unsubscribing from my instance?

After your RDS instance is released or unsubscribed, you can retrieve your data in the following two ways:

Option 1: Restore from the Recycle Bin

If the instance is still in the Recycle Bin (applicable to subscription instances that expired and pay-as-you-go or Serverless instances that were manually released), you can rebuild the instance from the Recycle Bin to restore the original instance data to a new instance. For more information, see Instance Recycle Bin.

Option 2: Restore to a new instance using deleted instance backups

If the instance is no longer in the Recycle Bin but you configured a backup retention policy after release, you can use the retained backup files to restore your data to a new instance:

  1. Log on to the RDS console. In the left-side navigation pane, click Backup and Restoration.

  2. Click the Backup for Deleted Instances tab.

  3. Locate the target released instance and expand its backup list.

  4. Select a backup set and click Restore.

  5. On the purchase page, configure the parameters for the new instance, complete the payment, and wait for the data restoration to complete.

Note

After an instance is deleted, there may be a delay before the retained backup sets are displayed. The backup sets will be displayed within 30 minutes after the background tasks are complete.

I can't find Release Instance in the console. Why?

Subscription instances cannot be released directly — only unsubscribed from. Submit a ticketticketticketticketticketticketticket to unsubscribe.submitting a ticketsubmitting a ticket

API reference

Operation Description
DeleteDBInstance Releases a pay-as-you-go or serverless instance. Not applicable to subscription instances.

What's next

References