Deleting a Read Replica

You can delete a read replica.

Use the Console, a command-line interface, or the REST API to delete a read replica.

Using the Console

Use the Console to delete a read replica of the DB system.

This task requires the following:
  • A running DB system.
  • A read replica.
Do the following to delete a read replica:
  1. On the DB systems list page, select the DB system that contains the read replica that you want to work with. If you need help finding the list page or the DB system, see Listing DB Systems - Using the Console.
  2. On the details page, select the Read replicas tab or resource.
  3. From the Actions menu for the read replica that you want to delete, select Delete.
  4. In the Delete read replica dialog, select Delete read replica to confirm.

Using the CLI

Use the command-line interface to delete a read replica.

This task requires the following:
  • A read replica OCID.
  • A policy that permits you to delete read replicas in the compartment or tenancy.
  • A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Do the following on the CLI to delete a read replica:
  1. Open a command prompt, and run the following command:
    oci mysql replica delete --replica-id <ReplicaOCID> 
    
    • replica-id: Specify the OCID of the read replica.

MySQL HeatWave Service deletes the read replica.