Updated on 2026-11-19 GMT+08:00

Deleting a VPC

Scenarios

If you no longer need a VPC, you can delete it.

Constraints

If you want to delete a VPC that has subnets, custom routes, or other resources, you need to delete these resources as prompted on the console first and then delete the VPC.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the region and project.
  3. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  4. On the Virtual Private Cloud page, locate the row that contains the VPC to be deleted and click Delete in the Operation column.

    A confirmation dialog box is displayed.

  5. Confirm the information and click Yes.

    If the VPC cannot be deleted, the console displays a message. Delete the resources that are using the VPC by referring to Why Can't I Delete My VPCs and Subnets?.