All Products
Search
Document Center

ApsaraDB RDS:Release or unsubscribe from an ApsaraDB RDS for MySQL instance

Last Updated:Apr 01, 2025

If you no longer require an ApsaraDB RDS for MySQL instance, you can manually release or unsubscribe from the RDS instance. You can release a pay-as-you-go or serverless RDS instance or unsubscribe from a subscription RDS instance. This topic describes how to release or unsubscribe from an RDS instance in the ApsaraDB RDS console or by calling API operations. This topic also describes the usage notes and FAQ.

Usage notes

  • You can release pay-as-you-go or serverless RDS instances or unsubscribe from subscription RDS instances.

  • After you release or unsubscribe from your RDS instance, data retention policies vary.

    • Instances moved to the recycle bin

      The following RDS instances are moved to the recycle bin. You can unlock and rebuild the RDS instances in the recycle bin.

      • Subscription RDS instances that are released due to expiration or are manually unsubscribed from

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

      • Serverless RDS instances that are manually released

      Note

      RDS instances that meet specific requirements are moved to the recycle bin. For more information, see Manage ApsaraDB RDS for MySQL instances in the recycle bin.

    • Data backup retention policies

      If the Backup Retention Policy After Release parameter is configured for the RDS instance, the backup files of the RDS instance are retained even if you release or unsubscribe from the RDS instance. You can download the backup files to your computer. If you set the parameter to Latest or All, fees are generated the backup storage. For more information about how to delete backup files, see Use the backup for deleted instances feature.

    • Cross-region backup retention policies

      If the cross-region backup feature is enabled for the RDS instance and the instance is within the retention period, the backup files that are generated by using the cross-region backup feature are retained.

    • Immediate data deletion

      In other situations, the data of an RDS instance is immediately deleted after you release or unsubscribe from the RDS instance. The data cannot be restored. Proceed with caution. Before you release or unsubscribe from an RDS instance, we recommend that you back up the RDS instance and download the backup files.

  • You can release or unsubscribe from the primary or read-only RDS instance based on the following rules:

    • If you want to release or unsubscribe from the last read-only RDS instance of a primary RDS instance, you must disable the read/write splitting feature for the primary RDS instance.

    • After you release or unsubscribe from a primary RDS instance, the subscription read-only RDS instances or pay-as-you-go read-only RDS instances of the primary RDS instance are automatically deleted. In addition, the payments for the subscription read-only RDS instances of the primary RDS instance are refunded.

  • After you unsubscribe from a subscription RDS instance, the RDS instance is locked, and no fees are generated. However, the RDS instance is still displayed in the ApsaraDB RDS console. The RDS instance can be removed from the console only after you destroy the RDS instance in the recycle bin.

Release or unsubscribe from a primary RDS instance

Release a pay-as-you-go primary RDS instance and a serverless RDS instance

Important

You cannot release a pay-as-you-go RDS instance in the Suspended state. You must restart the RDS instance and then release the instance. You can also call the DeleteDBInstance operation to release the RDS 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 in which the RDS instance resides.

  2. Use one of the following methods to release an RDS instance:

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

    • Method 2: Find the required RDS instance and click the instance ID. In the Status section of the Basic Information page, click Release Instance.

  3. In the message that appears, click OK.

Unsubscribe from a subscription primary RDS instance

You can use one of the following methods to unsubscribe from a subscription RDS instance:

Unsubscriptions page

Go to the Unsubscriptions page. Then, submit a ticket to apply for unsubscribing from a subscription RDS instance.

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 in which the RDS instance resides.

  2. Find the required RDS instance and click the instance ID. In the Status section of the Basic Information page, click Cancellation of Instance Subscription to go to the Unsubscriptions page. Then, submit a ticket to apply for unsubscribing from a subscription RDS instance.

Instance details 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 in which the RDS instance resides.

  2. Find the required RDS instance. In the Actions column of the RDS instance, choose More > Cancellation of Instance Subscription. In the dialog box that appears, click OK to go to the Unsubscriptions page. Then, submit a ticket to apply for unsubscribing from a subscription RDS instance.

Release or unsubscribe from a read-only RDS instance

Manually release a pay-as-you-go read-only RDS 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 in which your RDS instance resides.

  2. Use one of the following methods to release an RDS instance:

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

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

  3. In the message that appears, click OK.

Unsubscribe from a subscription read-only RDS instance

You can use one of the following methods to unsubscribe from a subscription RDS instance:

Unsubscriptions page

Go to the Unsubscriptions page. Then, submit a ticket to apply for unsubscribing from a subscription RDS instance.

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 in which the RDS instance resides.

  2. Find the required RDS instance and click the instance ID. In the Status section of the Basic Information page, click Cancellation of Instance Subscription to go to the Unsubscriptions page. Then, submit a ticket to apply for unsubscribing from a subscription RDS instance.

Instance details 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 in which the RDS instance resides.

  2. Find the required RDS instance. In the Actions column of the RDS instance, choose More > Cancellation of Instance Subscription. In the dialog box that appears, click OK to go to the Unsubscriptions page. Then, submit a ticket to apply for unsubscribing from a subscription RDS instance.

Automatically release a read-only RDS instance

After you release or unsubscribe from a primary RDS instance, the subscription read-only RDS instances or pay-as-you-go read-only RDS instances of the primary RDS instance are automatically deleted. In addition, the payments for the subscription read-only RDS instances of the primary RDS instance are refunded.

FAQ

  • If I release or unsubscribe from a read-only RDS instance, are my workloads interrupted?

    Yes, if you release or unsubscribe from a read-only RDS instance, your workloads on the read-only RDS instance are interrupted.

    • If you enable the database proxy feature for your RDS instance, we recommend that you set the read weight of a read-only RDS instance to 0 before you release or unsubscribe from the read-only RDS instance. The cached connection to the read-only RDS instance remains valid. If you want to forward read requests to other read-only RDS instances, you must establish new connections.

    • If you disable the database proxy feature for your RDS instance, you must modify the application code to replace the connection settings for the read-only RDS instance that you want to release or unsubscribe from with the connection settings of another read-only RDS instance or the primary RDS instance.

  • After I release or unsubscribe from my RDS instance, how do I retrieve the data of the RDS instance?

    If your RDS instance is configured to retain backup files after you release or unsubscribe from your RDS instance, you can go to the Backup for Deleted Instances tab of the Backups page in the ApsaraDB RDS console to restore the data of your RDS instance.

  • I cannot find Release Instance in the ApsaraDB RDS console. Why?

    Subscription RDS instances cannot be released. You can only submit a ticket to unsubscribe from a subscription RDS instance.

Related operations

Operation

Description

DeleteDBInstance

Releases a pay-as-you-go or serverless RDS instance. You cannot unsubscribe from a subscription RDS instance by calling the API operation.

References