Deleting a VPC Endpoint Service
Function
This API is used to delete a VPC endpoint service.
This API is asynchronous. If it is successfully called, status code 200 is returned, indicating that the request has been successfully delivered. It takes 1 to 2 minutes to delete a VPC endpoint service. You can query whether it has been deleted by referring to Querying Details of a VPC Endpoint Service.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
 - If you are using identity policy-based authorization, the following identity policy-based permissions are required. 
     
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpcep:endpointServices:delete
Write
endpointServices *
g:ResourceTag/<tag-key>
- vpcep:epservices:delete
 
-
 
URI
DELETE /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         project_id  | 
       
         Yes  | 
       
         String  | 
       
         Specifies the project ID.  | 
      
| 
         vpc_endpoint_service_id  | 
       
         Yes  | 
       
         String  | 
       
         Specifies the ID of the VPC endpoint service.  | 
      
Request 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.  | 
      
Response Parameters
Status code: 204
The server has successfully processed the request.
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.