This page describes how to delete a Database Connection.

## Delete a Database Connection

To delete a Database Connection, do the following:

### gcloud

Use the `gcloud oracle-database database-connections delete` command to
delete a Database Connection.

    gcloud oracle-database database-connections delete CONNECTION_ID \
        --project=PROJECT_ID \
        --location=REGION

Replace the following:

- <var translate="no">CONNECTION_ID</var>: the ID of the Database Connection.
- <var translate="no">PROJECT_ID</var>: the ID of your Google Cloud project.
- <var translate="no">REGION</var>: the region where your Database Connection is located.

### API

To delete a Database Connection, run the following `curl` command:

```
curl -X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/databaseConnections/CONNECTION_ID"
```

Replace the following:

- <var translate="no">PROJECT_ID</var>: the ID of your Google Cloud project.
- <var translate="no">REGION</var>: the region where your Database Connection is located.
- <var translate="no">CONNECTION_ID</var>: the ID of the Database Connection.