Deleting Pay-per-Use DB Instances or Read Replicas
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. To delete DB instances or read replicas billed on the yearly/monthly basis, you need to unsubscribe from the order. For details, see Unsubscribing from a Yearly/Monthly Instance.
Before deleting a DB instance, check whether there are any manual backups. If you do not need to retain manual backups, delete them when deleting the DB instance. If you have purchased an EIP, release or unsubscribe from it before deleting the DB instance to save costs.
Billing
- You will not be billed for the instances that were not successfully created.
- 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.
Constraints
- DB instances cannot be deleted when operations are being performed on them. They can be deleted only after the operations are complete.
- If a backup of a DB instance is being restored, the instance cannot be deleted.
- A maximum of 50 pay-per-use DB instances can be deleted at a time.
- 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 rebuild a DB instance that was deleted up to 7 days ago from the recycle bin.
- You can use a manual backup to restore a DB instance. For details, see Restoring a DB Instance from Backups.
Procedure
- Click
in the upper left corner and select a region.
- Click
in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, locate the primary DB instance to be deleted and choose More > Delete in the Operation column.
Figure 1 Primary instance list
- In the displayed dialog box, enter DELETE and click OK.
Figure 2 Deleting an instance
- 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.
- Refresh the DB instance list later to confirm that the deletion was successful.
- Click
in the upper left corner and select a region.
- Click
in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, locate the target DB instance and click
. All the read replicas created for the DB instance are displayed.
- Locate the read replica to be deleted and click More > Delete in the Operation column.
Figure 3 Read replica list
- In the displayed dialog box, enter DELETE and click OK.
- 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.
- Refresh the DB instance list later to check that the deletion is successful.
- Click
in the upper left corner and select a region.
- Click
in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, select the RDS for MySQL pay-per-use DB instances to be deleted and choose above the DB instance list.
- In the displayed dialog box, enter DELETE and click OK.
- 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.
- Refresh the DB instance list later to check that the deletion is successful.
Related APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot