Deletes an endpoint.


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 DeleteVpcEndpoint

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

EndpointId String Yes ep-hp33b2e43fays7s8****

The ID of the endpoint that you want to delete.

RegionId String Yes eu-west-1

The ID of the region where the endpoint is created. You can call the DescribeRegions operation to query the most recent region list.

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 the value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters. It cannot exceed 64 characters in length.

Note If you do not set this parameter, the system automatically uses the request ID as the client token. The ID of each request may be unique.
DryRun Boolean No false

Specifies whether to only precheck the request. Valid values:

  • true: prechecks the API request. If you select this option, the endpoint is not deleted after the request passes the precheck. Check items include whether the AccessKey pair is valid, whether the RAM user is authorized, and whether the required parameters are specified. If the request fails the precheck, the corresponding error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false: sends the API request. If the request passes the precheck, an HTTP 2xx status code is returned and the endpoint is deleted. This is the default value.

Response parameters

Parameter Type Example Description
RequestId String 8D8992C1-6712-423C-BAC5-E5E817484C6B

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "8D8992C1-6712-423C-BAC5-E5E817484C6B"

Error codes

HttpCode Error code Error message Description
400 EndpointOperationDenied The specified operation of endpoint is not allowed. The error message returned because the operation is not allowed when the endpoint is being configured.
400 EndpointDependenceViolation The specified endpoint has dependent zone(s). The error message returned because the zone where the endpoint is deployed does not support the operation.
400 EndpointNotFound The specified Endpoint does not exist. The error message returned because the specified endpoint does not exist.
400 EndpointProtected The specified Endpoint is protected. The error message returned because the configuration read-only mode is enabled for the endpoint.

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