This page describes how to delete a peer database in Google Cloud.

You can't delete a peer database during a switchover operation.

## Before you begin

Ensure that you have the following roles and permissions required to delete a
peer database:

- `roles/autonomousDatabaseAdmin`

## Delete a peer database

To delete a peer database, do the following:

### Console

1. Go to the **Autonomous AI Database** page.

   [Go to Autonomous AI Database](https://console.cloud.google.com/oracle/autonomous-databases/)
2. Click the name of the Autonomous AI Database for which you want to delete a
   peer database.

3. On the **Autonomous AI Database details** page, click the
   **Disaster Recovery** tab.

4. In the **Peer database** section, for the peer database that you want to
   delete, click **View actions** ,
   and then click **Delete**.

5. In the **Delete database instance** dialog, enter the peer database
   ID and click **Confirm**.

   The deletion of the peer database might take a few hours. On the
   **Disaster recovery** tab, in the **Peer database** section, the
   **Status** field shows you the progress of the delete operation. When the
   peer database is deleted, it's removed from the peer database list.

### gcloud

You can use the `gcloud oracle-database autonomous-databases delete`
command to delete a peer database.

    gcloud oracle-database autonomous-databases delete DATABASE_ID
    --location=REGION_ID

Replace the following:

- <var translate="no">DATABASE_ID</var>: the identifier for the peer database.
- <var translate="no">REGION_ID</var>: the region of the peer database.

## What's next

- Learn how to [switchover](https://docs.cloud.google.com/oracle/database/docs/perform-switchover.md.txt) to a a peer database.
- [View peer database details](https://docs.cloud.google.com/oracle/database/docs/view-peer-databases.md.txt).