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:
Console
Go to the ODB Network page.
Click the ODB Network network for which you want to delete a subnet.
Go to the Subnets section.
For the subnet which you want to delete, click
View actions, and then click Delete.In the Delete ODB Subnet? dialog, type the subnet name to confirm deletion of your subnet.
Click Confirm.
gcloud
Use the gcloud oracle-database odb-networks odb-subnets delete
command to delete an ODB Subnet.
gcloud oracle-database odb-networks odb-subnets delete ODB_SUBNET_ID \
--project=PROJECT_ID \
--location=REGION \
--odb-network=ODB_NETWORK_ID
Replace the following:
- ODB_SUBNET_ID: the ID of the ODB Subnet.
- 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 the ODB Subnet.
- ODB_NETWORK_ID: the ID of the ODB Network to which the ODB Subnet belongs.
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 the 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:
Console
Go to the ODB Network page.
Click the ODB Network network which you want to delete.
For the ODB Network which you want to delete, click
View actions, and then click Delete.In the Delete ODB Network? dialog, type the ODB Network name to confirm deletion of your ODB Network.
Click Confirm.
gcloud
Use the gcloud oracle-database odb-networks delete
command to delete an
ODB Network.
gcloud oracle-database odb-networks delete ODB_NETWORK_ID \
--project=PROJECT_ID \
--location=REGION
Replace the following:
- ODB_NETWORK_ID: the ID of your ODB Network.
- 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 the ODB Network.
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.