Deletes a subnet from a VPC.
             
 Declaration Syntax
 Declaration Syntax| C# | 
DeleteSubnetResponse DeleteSubnet( DeleteSubnetRequest request )
 Parameters
 Parameters- request (DeleteSubnetRequest)
- Delete Subnet request
 Return Value
 Return ValueDelete Subnet  Response from the service
 Remarks
 Remarks
             You must terminate all running instances in the subnet
             before deleting it, otherwise Amazon VPC returns an error.
            
             AWS might delete any subnet if you leave it inactive for
             an extended period of time (inactive means that there are
             no running Amazon EC2 instances in the subnet).
             
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| WebException | |
| AmazonEC2Exception |