Delete

The DELETE/api/compute/execution/{executionId} endpoint can be used to delete an execution. It can delete finished executions, succeeded and also failed, and running executions as well.

Click to show example commands to delete the engine execution
projectId="<replacewithprojectid>"
openapikey="<replacewithopenapikey>"
executionId="<replacewithexecutionid>"

# cancel the execution
curl -L -X DELETE "https://api.mike-cloud-test.com/api/compute/execution/$executionId" \
  -H 'api-version: 2' \
  -H 'dhi-service-id: engine' \
  -H "dhi-project-id: $projectId" \
  -H "dhi-open-api-key: $openapikey" \
  -H 'Content-Length: 0'
await computeClient.DeleteExecutionAsync(projectId, executionId);

When things go well, no content will be returned. Execution status will be changed to Deleting. If there are failures during execution deletion engine execution status will be changed to Failure. On successful engine execution deletion an event EngineExecutionHardDeleteMessage will be emitted, the list of events can be found here

It is important to understand that this is hard delete. Results stored in the default output storage are removed. Deleted files can't be restored.