This page describes how to delete an ODB Network and ODB Subnets.
Deleting an ODB Network or an ODB Subnet permanently removes it. You can't undo this later.
Before you begin
Make sure that you have the required Identity and Access Management (IAM) roles and permissions to delete an ODB Network and ODB Subnets as described in Deploy Oracle Database@Google Cloud environment.
Delete the Oracle Database@Google Cloud resources associated with the ODB Network and the ODB Subnet that you want to delete.
Delete an ODB Subnet
To delete your ODB Subnet, do the following:
API
To delete an ODB Subnet, 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/odbNetworks/ODB_NETWORK_ID/odbSubnets/ODB_SUBNET_ID"
Replace the following:
- PROJECT_ID: the ID of your Google Cloud project which contains the ODB Subnet to be deleted. If you're using a Shared VPC, then this is the ID of your host project.
- REGION: the region of your ODB Subnet.
- ODB_NETWORK_ID: the ID of the ODB Network to which the ODB Subnet belongs.
- ODB_SUBNET_ID: the ID of the ODB Subnet.
Delete an ODB Network
Before deleting an ODB Network, you must delete its ODB Subnets.
To delete your ODB Network, do the following:
API
To delete an ODB Network, 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/odbNetworks/ODB_NETWORK_ID"
Replace the following:
- PROJECT_ID: the ID of your Google Cloud project which contains the ODB Network to be deleted. If you're using a Shared VPC, then this is the ID of your host project.
- REGION: the region of your ODB Network.
- ODB_NETWORK_ID: the ID of your ODB Network.