AWS SDK for .NET Documentation
DeleteVpcRequest Class
AmazonAmazon.EC2.ModelDeleteVpcRequest Did this page help you?   Yes   No    Tell us about it...
Deletes a VPC.
Declaration Syntax
C#
public class DeleteVpcRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DeleteVpcRequest()()()()
Initializes a new instance of the DeleteVpcRequest class

Equals(Object)
Determines whether the specified Object is equal to the current 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.

Remarks
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).
Inheritance Hierarchy
Object
EC2Request
 DeleteVpcRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)