Deleting a Function or Function Version
Function
This API is used to delete a function or function version except the LATEST version. If the URN contains a function version or alias, the function version or the version corresponding to the specified alias as well as associated triggers will be deleted. If the URN does not contain a function version or alias, the entire function as well as all its versions, aliases, and triggers will be deleted.
URI
DELETE /v2/{project_id}/fgs/functions/{function_urn}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
function_urn |
Yes |
String |
Function URN. |
|
project_id |
Yes |
String |
Tenant's project ID. |
Request Parameters
None
Response Parameters
None
Example Requests
DELETE https://{functiongraph_endpoint}/v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/functions/urn:fss:xxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:v20170830-181539
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
No Content |
|
404 |
Not Found |
Error Codes
See Error Codes.
Last Article: Exporting a Function
Next Article: Querying All Version Aliases of a Function
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.