Deletes a function.
Authorization information
Request syntax
DELETE /2021-04-06/services/{serviceName}/functions/{functionName}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
If-Match | string | No | $.parameters[8].schema.description | e19d5cd5af0378da05f63f891c7467af |
serviceName | string | Yes | $.parameters[8].schema.enumValueTitles | demoService |
functionName | string | Yes | Deletes a function. | demoFunction |
X-Fc-Account-Id | string | No | {"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
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
|