Permanently delete a trashed workflow in Dynatrace with the AutomationEngine API and remove it when the workflow is already in trash.
| DELETE | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/automation/v1/trash/workflows/{id} |
You provide the workflow UUID in the path to delete a trashed workflow in Dynatrace. The adminAccess query parameter can expand access, and the operation returns 204 or 404 if the workflow is missing or not in trash.
To execute this request, you need a platform token or OAuth access token with automation:workflows:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | A UUID string identifying this workflow. | path | Required |
| adminAccess | boolean | Allow access to all workflows/executions - additionally requires automation:workflows:admin | query | Optional |
| Code | Type | Description |
|---|---|---|
| 204 | - | No response body |
| 4XX | Error | - |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| message | string | - |
| code | integer | - |
| details | Error | - |
ErrorDetails object| Element | Type | Description |
|---|---|---|
| errorCode | string | - |
| errorRef | string | - |
{"error": {"message": "string","code": 1,"details": {"errorCode": "string","errorRef": "string"}}}