Delete Task
Tasks
Delete Task
Permanently delete a task.
Required Role: ADMIN or OWNER
⚠️ WARNING: Tasks with execution history CANNOT be deleted!
Important:
- Tasks with execution history return 400 Bad Request
- Use archive instead to preserve audit trail:
POST /tasks/{task_id}/archive - Only tasks with NO executions can be deleted
- Deletion cascades to remove notifications (if task never ran)
Why this restriction: Execution history contains immutable audit records required for compliance. Deleting executions would destroy historical usage metrics and transfer logs.
Deleting a task:
- Permanently removes the task definition
- Cascades to delete notifications (if any)
- CANNOT be undone
Validation:
- Task must exist and belong to the team
- Task must NOT have any execution history (enforced)
Recommendation: Use archive instead of delete to preserve history.
DELETE
Delete Task
Documentation Index
Fetch the complete documentation index at: https://docs.dataraven.io/llms.txt
Use this file to discover all available pages before exploring further.