So, when we click Delete button on UI for deployed node, there are no any DELETE requests for tasks. We just mark the node as "pending deletion". To remove it from environment completely, we need to run redeployment for the environment. In this case, all previous deployment tasks will be deleted, yes.
But in the case of provisioned and not deployed nodes, we do not need to redeploy environment. Provision task won't be deleted.
Does UI need to send both requests when deleting a provisioned node: PUT /api/nodes/ and DELETE /api/tasks/<provision_task_id> ?
So, when we click Delete button on UI for deployed node, there are no any DELETE requests for tasks. We just mark the node as "pending deletion". To remove it from environment completely, we need to run redeployment for the environment. In this case, all previous deployment tasks will be deleted, yes.
But in the case of provisioned and not deployed nodes, we do not need to redeploy environment. Provision task won't be deleted.
Does UI need to send both requests when deleting a provisioned node: PUT /api/nodes/ and DELETE /api/tasks/ <provision_ task_id> ?