Delete Task
REST API - Tasks
Delete Task
Delete a task and its associated data
DELETE
Delete Task
Delete a task by ID. Running tasks will be cancelled before deletion, and all associated data including results and conversation history will be permanently removed.Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Unique identifier of the task to delete (UUID format)
Response
Returns204 No Content on successful deletion (empty response body).
Example Request
Response Status Codes
| Status | Meaning |
|---|---|
| 204 | Task deleted successfully |
| 404 | Task not found |
| 401 | Unauthorized (invalid API key) |
| 403 | Forbidden (task belongs to different organization) |
Important Notes
- Permanent deletion - This action cannot be undone
- Running tasks - Will be cancelled before deletion
- Data removal - Results, conversation history, and all associated data are removed
- Sub-tasks - All sub-tasks are also deleted
Example with Error Handling
Use Cases
- Clean up completed tasks - Remove old task data to save storage
- Cancel running tasks - Stop a task that’s in progress
- Manage sensitive data - Delete tasks containing sensitive information
- Maintain organization - Remove test or failed tasks

