Deleting a Subnet
On Compute Cloud@Customer, to delete a subnet, it must contain no resources (instances, VNICs).
For more information about deleting VCNs and Subnets, see Subnet or VCN Deletion
-
In the Compute Cloud@Customer Console navigation menu, click Networking, then click Virtual Cloud Networks.
- At the top of the page, select the compartment that contains the VCN and subnet.
-
Click the name of the VCN that contains the subnet you want to delete.
- Under Resources, click Subnets.
- Click the Actions menu (
), click Delete.
-
Confirm the deletion.
-
Use the oci network subnet delete command and required parameters to delete a subnet.
oci network subnet delete --subnet-id subnet_OCID [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the DeleteSubnet operation to delete a subnet.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.