All Products
Search
Document Center

Function Compute:DeleteServiceVersion

Last Updated:Aug 20, 2025

You can call this operation to delete a service version.

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}/versions/{versionId} 

Request parameters

ParameterTypePositionRequiredExampleDescription
serviceNameStringPathYesservice_name

The name of the service.

versionIdStringPathYes1

The version of the service.

Examples

Sample requests

DELETE /services/service_name/versions/1 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.