Deletes a prefix list.

Usage notes

You cannot repeatedly call the DeleteDhcpOptionsSet operation to delete a prefix list within the specified period of time.

Debugging

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 DeleteVpcPrefixList

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

PrefixListId String Yes pl-0b78hw45f****

The ID of the prefix list that you want to delete.

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.

Note If you do not set this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request.
DryRun Boolean No false

Specifies whether to check the request without performing the operation. Valid values:

  • true: checks the request without performing the operation. The system checks the required parameters, request syntax, and limits. If the request fails to pass the check, an error message is returned. If the request passes the check, the DryRunOperation error code is returned.
  • false (default): sends the request. If the request passes the check, a 2xx HTTP status code is returned and the operation is performed.
RegionId String Yes cn-hangzhou

The region ID of the prefix list.

You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
RequestId String 64B48E3D-DF70-471B-AA93-08E683A1B45

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteVpcPrefixList
&PrefixListId=pl-0b78hw45f****
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&DryRun=false
&RegionId=cn-hangzhou
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteVpcPrefixListResponse>
    <RequestId>64B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</DeleteVpcPrefixListResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "64B48E3D-DF70-471B-AA93-08E683A1B45"
}

Error codes

HttpCode Error code Error message Description
400 IncorrectStatus.SystemPrefixList This is not allowed to operate system prefixList. The error message returned because you cannot manage the system prefix list.
400 OperationDenied.DeleteShareResource This is not allowed to delete shared prefixList. The error message returned because you cannot delete a shared prefix list.
400 IncorrectStatus.PrefixList The status of prefixList is incorrect. The error message returned because the prefix list is in an unstable state.
400 DependencyViolation.PrefixListRelation The specified resource of prefixList depends on prefixList relation, so the operation cannot be completed. The error message returned because the prefix is being used and cannot be deleted.
400 DependencyViolation.ShareResource The specified resource of prefixList depends on share resource, so the operation cannot be completed. The error message returned because the prefix list is being shared and cannot be deleted.

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