Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteDhcpOptions

Description

Deletes a set of DHCP options that you specify. The API action returns an error if the set of options you specify is currently associated with a VPC. You can disassociate the set of options by associating either a new set of options or the default options with the VPC.

For more information about DHCP options sets, see Using DHCP Options with Your VPC in the Amazon Virtual Private Cloud User Guide.

Request Parameters

DhcpOptionsId

The ID of the DHCP options set.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in an DeleteDhcpOptionsResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes the set of DHCP options with ID dopt-7a8b9c2d.

https://ec2.amazonaws.com/?Action=DeleteDhcpOptions							 
&DhcpOptionsId=dopt-7a8b9c2d
&AUTHPARAMS

Example Response

<DeleteDhcpOptionsResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">	
   <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId>  
   <return>true</return>
</DeleteDhcpOptionsResponse>