Updated on 2024-10-14 GMT+08:00

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

Scenarios

To release resources, you can delete DB instances or read replicas billed on the pay-per-use basis as required on the Instances page.

Constraints

  • DB instances cannot be deleted when operations are being performed on them. They can be deleted only after the operations are complete.
  • A maximum of 50 pay-per-use DB instances can be deleted at a time.
  • If you delete a pay-per-use DB instance, its automated backups will also be deleted and you will no longer be billed for them. Manual backups, however, will be retained and generate additional costs.
  • If you delete a primary DB instance, its standby DB instance and read replicas (if any) 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.
  • You can use a manual backup to restore a DB instance. For details, see Restoring a DB Instance from a Backup.

Deleting a Pay-per-Use DB Instance

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, locate the primary DB instance to be deleted and click More > Delete in the Operation column.

    Figure 1 Deleting a DB instance

  4. In the displayed dialog box, select I have read this warning and understand the risks. and click Yes.
  5. (Optional) If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.

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

  6. Refresh the DB instance list later to confirm that the deletion was successful.

Deleting a Pay-per-Use Read Replica

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, locate the target DB instance and click . All the read replicas created for the DB instance are displayed.
  4. Locate the read replica to be deleted and click More > Delete in the Operation column.

    Figure 2 Deleting a read replica

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

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

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