Deleting a Subnet

On Private Cloud Appliance, to delete a subnet, it must contain no resources (instances, VNICs).

For more information about deleting VCNs and Subnets, see Subnet or VCN Deletion

    1. In the Compute Web UI navigation menu, select Networking, then select Virtual Cloud Networks.

    2. At the top of the page, select the compartment that contains the VCN and subnet.
    3. Select the name of the VCN that contains the subnet you want to delete.

    4. Under Resources, select Subnets.
    5. Select the Actions menu (An image of the three dot icon.), select Delete.
    6. 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.