Deletes a VPC.
![](../icons/collapse_all.gif)
C# |
public class DeleteVpcRequest : EC2Request
![](../icons/collapse_all.gif)
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | DeleteVpcRequest()()()() | Initializes a new instance of the DeleteVpcRequest class |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | IsSetVpcId()()()() |
Checks if VpcId property is set
|
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VpcId |
The ID of the VPC you want to delete.
|
![]() | WithVpcId(String) | Obsolete.
Sets the ID of the VPC you want to delete.
|
![](../icons/collapse_all.gif)
You must terminate all running instances and delete
all subnets before deleting the VPC, otherwise Amazon
VPC returns an error.
AWS might delete any VPC if you leave it inactive for
an extended period of time (inactive means that there
are no running Amazon EC2 instances in the VPC).
![](../icons/collapse_all.gif)
Object | ||
![]() | EC2Request | |
![]() | DeleteVpcRequest |