Deleting a Subnet

Delete a subnet from a Virtual Cloud Network (VCN).

Before you can delete a subnet, it must have no instances, load balancers, OCI database systems, or orphaned mount targets in it. For more information, see Subnet or VCN Deletion.

If the subnet is empty, its state changes to TERMINATING briefly and then TERMINATED. If the subnet is not empty, you get an error indicating that there are still instances or other resources in it that you must delete first.

Was this article helpful?