DeleteVpc
GET /?Action=DeleteVpc
Description
Deletes a specified VPC.
Before deleting the VPC, you need to delete or detach all the resources associated with the VPC:
-
Instances
-
VPC peering connections
-
Custom route tables
-
External IP addresses allocated to resources in the VPC
-
Flexible network interface created in the subnets
-
Gateways (Virtual private gateways, Internet gateways and NAT gateways)
-
Load balancers
-
Security groups
-
VPC subnets
Body parameter
Required: false
Name: DeleteVpcRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
VpcId |
The ID of the VPC you want to delete. |
true |
string |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
DeleteVpcResult |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
requestId |
The ID of the request. |
false |
string |
||
return |
If |
false |
boolean |