Help Center> VPC Endpoint> API Reference> API> VPC Endpoint Services> Deleting a VPC Endpoint Service
Updated on 2024-04-19 GMT+08:00

Deleting a VPC Endpoint Service

Function

This API is used to delete a VPC endpoint service.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Minimum: 1

Maximum: 64

vpc_endpoint_service_id

Yes

String

Specifies the ID of the VPC endpoint service.

Minimum: 1

Maximum: 64

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token. It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token.

Content-Type

No

String

Specifies the MIME type of the request body. Default value application/json is recommended. For APIs used to upload objects or images, the MIME type varies depending on the flow type.

Default: application/json

Response Parameters

None

Example Requests

Deleting a VPC endpoint service

DELETE https://{endpoint}/v1/{project_id}/vpc-endpoint-services/4189d3c2-8882-4871-a3c2-d380272eed88

Example Responses

None

Status Codes

Status Code

Description

204

The server has successfully processed the request.

Error Codes

See Error Codes.