Deleting a VCN

On Compute Cloud@Customer, a VCN can only be deleted if it's empty. Before deleted a VCN, ensure that all subnets, route tables, gateways, and other resources have been deleted.

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

    1. In the Compute Cloud@Customer Console navigation menu, select Networking, then select Virtual Cloud Networks.

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

      The VCN details page is displayed.

    4. Under Resources, ensure that the VCN doesn't have any resources.

      If all the resources such as Subnets, Route Tables, and so on include a zero in parenthesis, then the VCN doesn't have any resources.

      If a resource exists, you must delete the resource before you can delete the VCN.

    5. Select Delete.

    6. Confirm the deletion.
  • Use the oci network vcn delete command and required parameters to delete a VCN.

    oci network vcn delete --vcn-id vcn_OCID [OPTIONS]

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • Use the DeleteVCN operation to delete a VCN.

    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.