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

Deleting Read Replicas from a Replica Set Instance

You can delete read replicas that are no longer used to release resources.

Only whitelisted users can use this function. You need to submit a service ticket to apply for this function. In the upper right corner of the management console, choose Service Tickets > Create Service Ticket to submit a service ticket.

Precautions

  • Deleted read replicas cannot be restored. Exercise caution when performing this operation.
  • If you have enabled operation protection, two-factor authentication is required for sensitive operations to secure your account and cloud products. For details about how to enable operation protection, see the Identity and Access Management User Guide.
  • Read replicas cannot be deleted from instances that have abnormal nodes.

Procedure

  1. Log in to the management console.
  2. In the service list, choose Databases > Document Database Service.
  3. On the Instances page, locate a target DB instance and click its name.
  4. In the Node Information area on the Basic Information page, click the Read replicas tab.

    • For yearly/monthly instances:
      • Locate a target read replica and choose More > Delete in the Operation column.
        Figure 1 Selecting a read replica in the yearly/monthly instance
      • Click Yes.
        Figure 2 Deleting the read replica from the yearly/monthly instance
      • Select the check box before I understand that a handling fee will be charged for this unsubscription and click OK.
        Figure 3 Confirming the deletion

      You can also delete read replicas in batches by selecting all read replicas to be deleted and clicking Batch Delete.

    • For pay-per-use instances:
      • Locate a target read replica and choose More > Delete in the Operation column.
        Figure 4 Selecting a read replica in the pay-per-use instance
      • Click Yes.
        Figure 5 Deleting the read replica from the pay-per-use instance

      You can also delete read replicas in batches by selecting all read replicas to be deleted and clicking Batch Delete.

  5. If you have enabled operation protection, click Start Verification in the Delete Read Replica dialog box. On the displayed page, click Send Code, enter the verification code, and click Verify. The page is closed automatically.