EC2.Client.
delete_dhcp_options
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.delete_dhcp_options(
DhcpOptionsId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the DHCP options set.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.None
Examples
This example deletes the specified DHCP options set.
response = client.delete_dhcp_options(
DhcpOptionsId='dopt-d9070ebb',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}