All Products
Search
Document Center

Function Compute:DeleteService

更新时间:Dec 26, 2025

You can call the DeleteService operation to delete a service.

Debugging

You can call this operation in OpenAPI Explorer to avoid calculating signatures. After a successful call, OpenAPI Explorer automatically generates sample SDK code.

Request headers

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

Name Type Required Example Description
If-Match String No e19d5cd5af0378da05f63f891c74****

This ensures that the modified service is the same as the intended service. Obtain this value from the response of the CreateService, UpdateService, or GetService operation.

Request syntax

DELETE /services/{serviceName} HTTP/1.1

Request parameters

Name Type Position Required Example Description
serviceName String Path Yes service_name

The name of the service to delete.

No response parameters are returned.

Examples

Sample request

DELETE /services/service_name HTTP/1.1
Host:fc-ram.aliyuncs.com
If-Match:e19d5cd5af0378da05f63f891c74****
Content-Type:application/json

Sample success response

JSON format

HTTP/1.1 200 OK

Error codes

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