Last updated: 2021-02-05 14:30:22

1. API Description

Domain name for API request:

This API (DeleteVpc) is used to delete VPCs.

  • Before deleting a VPC, ensure that the VPC contains no resources, including CVMs, cloud databases, NoSQL databases, VPN gateways, direct connect gateways, load balancers, peering connections, and basic network devices that are linked to the VPC.
  • The deletion of VPCs is irreversible. Proceed with caution.



We recommend you to use API Explorer
Try it

2. Input Parameters


Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DeleteVpc.
VpcId Yes String The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.

3. Output Parameters

Parameter Name Type Description

4. Example

Example1 Deleting a VPC

Input Example
&<Common request parameters>

Output Example

  "Response": {

5. Developer Resources



Command Line Interface

6. Error Code


Error Code Description
InvalidParameterValue.Malformed Invalid input parameter format.
ResourceInUse The resource is occupied.
ResourceNotFound The resource does not exist.