Deleting a VPC
Scenarios
You can delete a VPC if the VPC is no longer required.
A VPC cannot be deleted if it contains subnets, Direct Connect connections, custom routes, VPC peering connections, or VPNs. To delete the VPC, you must first delete the following resources.
- Subnets. For details, see section Deleting a Subnet.
- VPN connections. For details, see the Virtual Private Network User Guide.
- Direct Connect connections. For details, see the Direct Connect User Guide.
- Custom routes. For details, see section Deleting a Route or Deleting a Route.
- VPC peering connections. For details, see section Deleting a VPC Peering Connection.
Notes and Constraints
If there are any EIPs, the last VPC cannot be deleted.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - On the console homepage, under Network, click Virtual Private Cloud.
- In the navigation pane on the left, click Virtual Private Cloud.
- On the Virtual Private Cloud page, locate the row that contains the VPC to be deleted and click Delete in the Operation column.
- Click Yes in the displayed dialog box.
Last Article: Removing a Secondary CIDR Block from a VPC
Next Article: Managing VPC Tags
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.