Deleting a cloud network

    Warning

    Before you delete a network, you need to delete all its subnets. You cannot restore a network after it is deleted.

    To delete a cloud network:

    1. Open the Virtual Private Cloud section in the folder you want to delete the cloud network from.
    2. Click vertical-ellipsis in the row of the network to delete.
    3. In the menu that opens, click Delete.
    4. In the window that opens, click Delete.

    If you don't have the Yandex.Cloud command line interface yet, install it.

    The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

    1. See the description of the CLI's delete cloud network command:

      $ yc vpc network delete --help
      
    2. Get a list of all networks in the default folder:

      $ yc vpc network list
      +----------------------+----------------+
      |          ID          |      NAME      |
      +----------------------+----------------+
      | enpiuvhhd4t80k4n80i8 | test-network-1 |
      | enplom7a98s1t0lhass8 | default        |
      +----------------------+----------------+
      
    3. Select the ID or NAME of the network you need.

    4. Delete the network:

      $ yc vpc network delete test-network-1