All Products
Search
Document Center

Function Compute:DeleteService

更新时间:Aug 20, 2025

You can call this operation to delete a service.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample codes.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

DELETE /services/{serviceName} 

Request parameters

Parameter Type Position Required Example Description
If-Match String Header No service_name

The value used to ensure that the modified service is consistent with the service to be modified. The value is obtained from the responses of the CreateService, UpdateService, and GetService operations.

serviceName String Path Yes service_name

The name of the service to be deleted.

Examples

Sample requests

DELETE /2016-08-15/services/service_name HTTP/1.1
Common request headers

Sample success responses

JSON format

HTTP/1.1 204 No Content
Common response headers

Error codes

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