Deletes a subnet from a VPC. You must terminate all running instances in the subnet before deleting it, otherwise Amazon VPC returns an error.
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual DeleteSubnetResponse DeleteSubnet( DeleteSubnetRequest deleteSubnetRequest )
Parameters
- deleteSubnetRequest
-
Type: Amazon.EC2.Model.DeleteSubnetRequest
Container for the necessary parameters to execute the DeleteSubnet service method on AmazonEC2.
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5