Stay organized with collections
Save and categorize content based on your preferences.
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.
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:
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.
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:
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Delete ODB Network and ODB Subnets\n\nThis page describes how to delete an ODB Network and ODB Subnets.\n\nDeleting an ODB Network or an ODB Subnet permanently removes it.\nYou can't undo this later.\n\nBefore you begin\n----------------\n\n- Make sure that you have the required Identity and Access Management (IAM) roles and\n permissions to delete an ODB Network and ODB Subnets\n as described in [Deploy Oracle Database@Google Cloud environment](/oracle/database/docs/setup-oracle-database-environment#deploy-odb-environment).\n\n- Delete the Oracle Database@Google Cloud resources associated with the ODB Network and the\n ODB Subnet that you want to delete.\n\nDelete an ODB Subnet\n--------------------\n\nTo delete your ODB Subnet, do the following: \n\n### Console\n\n1. Go to the **ODB Network** page.\n\n [Go to ODB Network](https://console.cloud.google.com/oracle/odb-networks/)\n2. Click the ODB Network network for which you want to delete a subnet.\n\n3. Go to the **Subnets** section.\n\n4. For the subnet which you want to delete, click more_vert **View actions** ,\n and then click **Delete**.\n\n5. In the **Delete ODB Subnet?** dialog, type the subnet name to confirm\n deletion of your subnet.\n\n6. Click **Confirm**.\n\n### gcloud\n\nUse the `gcloud oracle-database odb-networks odb-subnets delete`\ncommand to delete an ODB Subnet. \n\n gcloud oracle-database odb-networks odb-subnets delete \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --odb-network=\u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e: the ID of the ODB Subnet.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: 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.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Subnet.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of the ODB Network to which the ODB Subnet belongs.\n\n### API\n\nTo delete an ODB Subnet, run the following `curl` command: \n\n```\ncurl -X DELETE \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID/odbSubnets/ODB_SUBNET_ID\"\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: 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.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Subnet.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of the ODB Network to which the ODB Subnet belongs.\n- \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e: the ID of the ODB Subnet.\n\nDelete an ODB Network\n---------------------\n\nBefore deleting an ODB Network, you must delete its\nODB Subnets.\n\nTo delete your ODB Network, do the following: \n\n### Console\n\n1. Go to the **ODB Network** page.\n\n [Go to ODB Network](https://console.cloud.google.com/oracle/odb-networks/)\n2. Click the ODB Network network which you want to delete.\n\n3. For the ODB Network which you want to delete, click more_vert **View actions** ,\n and then click **Delete**.\n\n4. In the **Delete ODB Network?** dialog, type the ODB Network\n name to confirm deletion of your ODB Network.\n\n5. Click **Confirm**.\n\n### gcloud\n\nUse the `gcloud oracle-database odb-networks delete` command to delete an\nODB Network. \n\n gcloud oracle-database odb-networks delete \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: 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.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of the ODB Network.\n\n### API\n\nTo delete an ODB Network, run the following `curl` command: \n\n```\ncurl -X DELETE \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID\"\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: 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.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network."]]