AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.
For .NET Core this operation is only available in asynchronous form. Please refer to DeleteDhcpOptionsAsync.
Namespace: Amazon.EC2
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public virtual DeleteDhcpOptionsResponse DeleteDhcpOptions( DeleteDhcpOptionsRequest request )
Container for the necessary parameters to execute the DeleteDhcpOptions service method.
This example deletes the specified DHCP options set.
var client = new AmazonEC2Client(); var response = client.DeleteDhcpOptions(new DeleteDhcpOptionsRequest { DhcpOptionsId = "dopt-d9070ebb" });
.NET Framework:
Supported in: 4.5 and newer, 3.5