Deletes a function. Before deleting a function, delete all triggers associated with the function.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:DeleteFunction |
delete |
*All Resource
|
None | None |
Request syntax
DELETE /2021-04-06/services/{serviceName}/functions/{functionName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
The service name. |
demoService |
| functionName |
string |
Yes |
The function name. |
demoFunction |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| If-Match |
string |
No |
The value used to ensure that the resource to be modified matches the expected resource. This value is obtained from the response of the Create, Get, and Update operations. |
e19d5cd5af0378da05f63f891c7467af |
| X-Fc-Account-Id |
string |
No |
The ID of your Alibaba Cloud account. |
188077086902**** |
| X-Fc-Date |
string |
No |
The date when the function invocation starts. The format is EEE,d MMM yyyy HH:mm:ss GMT. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
The invocation ID of the function. This value corresponds to the requestId parameter in the response. |
test-trace-id |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.