Help Center> Relational Database Service> User Guide> Working with RDS for MySQL> Instance Management> Deleting a Pay-per-Use DB Instance or Read Replica

Deleting a Pay-per-Use DB Instance or Read Replica

Scenarios

You can delete DB instances or read replicas billed in the pay-per-use mode as required on the Instance Management page to release resources. (To delete DB instances or read replicas billed in the yearly/monthly mode, you need to unsubscribe the order. For details, see Unsubscribing a Yearly/Monthly DB Instance.)

Constraints

DB instance deletion has the following constraints:

  • DB instances cannot be deleted when operations are being performed on them. They can be deleted only after the operations are completed.
  • If you delete a pay-per-use DB instance, its automated backups are also deleted and you are no longer charged for them. Manual backups are still retained and will incur additional costs.
  • If you delete a primary DB instance, its read replicas are also deleted automatically. Exercise caution when performing this operation.
  • Deleted DB instances cannot be recovered and resources are released. Exercise caution when performing this operation. If you want to retain data, create a manual backup first before deleting the DB instance.

Deleting a Pay-per-Use DB Instance

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
  4. On the Instance Management page, locate the target primary DB instance to be deleted and click More > Delete in the Operation column.

    Figure 1 Deleting a DB instance

  5. In the displayed dialog box, click Yes.
  6. If you have enabled the operation protection function, click Send Code in the displayed Identify Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication is required to improve the security of your account and cloud product. For details about how to enable operation protection, see the Identity and Access Management User Guide.

  7. Refresh the DB instance list later to check that the deletion is successful.

Deleting a Pay-per-Use Read Replica

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
  4. On the Instance Management page, locate the target DB instance and click in front of it. All the read replicas created for the DB instance are displayed.
  5. Locate the target read replicas to be deleted and click More > Delete in the Operation column.

    Figure 2 Deleting a read replica

  6. In the displayed dialog box, click Yes.
  7. If you have enabled the operation protection function, click Send Code in the displayed Identify Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication is required to improve the security of your account and cloud product. For details about how to enable operation protection, see the Identity and Access Management User Guide.

  8. Refresh the DB instance list later to check that the deletion is successful.