All Products
Search
Document Center

Function Compute:DeleteFunction

Last Updated:Jun 02, 2023

Deletes a function.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

DELETE /2021-04-06/services/{serviceName}/functions/{functionName}

Request parameters

ParameterTypeRequiredDescriptionExample
If-MatchstringNo

$.parameters[8].schema.description

e19d5cd5af0378da05f63f891c7467af
serviceNamestringYes

$.parameters[8].schema.enumValueTitles

demoService
functionNamestringYes

Deletes a function.

demoFunction
X-Fc-Account-IdstringNo

{"name":"DeleteFunction","product":"FC-Open","version":"2021-04-06","path":"/2021-04-06/services/{serviceName}/functions/{functionName}","deprecated":0,"method":"DELETE","protocol":"HTTP|HTTPS","hidden":0,"timeout":10000,"parameter_type":"Single","params":"[{"name":"If-Match","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"The ETag value of the resource. This value is used to ensure that the modified resource is consistent with the resource to be modified. The ETag value is returned in the responses of the CREATE, GET, and UPDATE operations.","description":"The ETag value of the resource. This value is used to ensure that the modified resource is consistent with the resource to be modified. The ETag value is returned in the responses of the CREATE, GET, and UPDATE operations. ","example":"e19d5cd5af0378da05f63f891c7467af"},{"name":"serviceName","position":"Path","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"The name of the service.","description":"The name of the service. ","example":"demoService"},{"name":"functionName","position":"Path","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"The name of the function.","description":"The name of the function. ","example":"demoFunction"},{"name":"X-Fc-Account-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The ID of your Alibaba Cloud account. ","example":"188077086902****"},{"name":"X-Fc-Date","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The start time when the function is invoked. Specify the time in the yyyy-mm-ddhh:mm:ss format. ","example":"2022-01-01 12:00:00"},{"name":"X-Fc-Trace-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The trace ID of the request for Function Compute API. The value is the same as that of the requestId parameter in the response. ","example":"test-trace-id"}]","response_headers":"[]","response":"{}","errors":"{}"}

188077086902****

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id