Delete Database Connections

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:

  • CONNECTION_ID: the ID of the Database Connection.
  • PROJECT_ID: the ID of your Google Cloud project.
  • REGION: 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:

  • PROJECT_ID: the ID of your Google Cloud project.
  • REGION: the region where your Database Connection is located.
  • CONNECTION_ID: the ID of the Database Connection.