Function Deployment
Delete Function Deployment
Deletes the deployment associated with the specified function. Upon deletion, any active instances will be terminated, and the function's status will transition to 'INACTIVE'. To undeploy a function version gracefully, specify 'graceful=true' query parameter, allowing current tasks to complete before terminating the instances. If the specified function version is public, then Account Admin cannot perform this operation. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header.
delete/v2/nvcf/deployments/functions/{functionId}/versions/{functionVersionId}
Path parameters
functionIdstring uuid required
Function id
functionVersionIdstring uuid required
Function version id
Query parameters
gracefulboolean
Query param to deactivate function for graceful shutdown
Response
OK
Example response
{
"function": {
"health": {
"timeout": "PT10S"
}
}
}