You can call this operation to delete a DHCP options set.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDhcpOptionsSet

The operation that you want to perform. Set the value to DeleteDhcpOptionsSet.

DhcpOptionsSetId String Yes dopt-o6w0df4epg9zo8isy****

The ID of the DHCP options set to be deleted.

RegionId String Yes cn-hangzhou

The region of the DHCP options set to be deleted. You can call the DescribeRegions operation to query region IDs.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe637760

The client token that is used to ensure the idempotence of the request. You can use the client to generate a value that is unique among different requests. ClientToken supports only ASCII characters.

It can contain up to 64 ASCII characters.

DryRun Boolean No false

Specifies whether to precheck this request only. Valid values:

true: Runs a precheck without deleting the configuration information of the DHCP options set. The system checks the format of the request, whether the required parameters are specified, and whether the limits of DHCP options sets are reached. An error message is returned if the request fails the precheck. If the request passes the precheck, the DryRunOperation error code is returned.

false (default value): sends a deletion request. If the request passes the precheck, the DHCP options set is deleted.

Response parameters

Parameter Type Example Description
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=DeleteDhcpOptionsSet
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "8B2F5262-6B57-43F2-97C4-971425462DFE"

Error codes

For a list of error codes, visit the API Error Center.