You can call this operation to delete a function.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common parameters.
| Parameter | Type | Required | Example | Description |
| If-Match | String | No | e19d5cd5af0378da05f63f891c74**** | The value used to ensure that the modified resource is consistent with the resource to be modified. The value is obtained from the responses of CreateFunction, GetFunction, and UpdateFunction. |
Request syntax
DELETE /services/{serviceName}/functions/{functionName} Request parameters
| Parameter | Type | Position | Required | Example | Description |
| serviceName | String | Path | Yes | service_name | The name of the service for which the function is to be deleted. |
| functionName | String | Path | Yes | function_name | The name of the function to be deleted. |
Examples
Sample requests
DELETE /2016-08-15/services/service_name/functions/function_name HTTP/1.1
Common request headersSample success responses
JSON format
HTTP/1.1 204 No Content
Common response headersError codes
For a list of error codes, visit the API Error Center.