Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lumina-ai-inc/chunkr/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
This endpoint requires API key authentication via theAuthorization header:
Path Parameters
The unique identifier of the task to delete
Requirements
- Task must have status
Succeeded,Failed, orCancelled - Tasks that are
StartingorProcessingcannot be deleted (use Cancel Task instead)
Response
On success, returns a plain text response:Status Codes
- 200: Task deleted successfully
- 400: Bad request (task cannot be deleted due to invalid status)
- 404: Task not found or expired
- 500: Internal server error
Examples
What Gets Deleted
When you delete a task, the following data is permanently removed:- Task Metadata - All task information from the database
- Input File - The original uploaded file
- Processed PDF - The generated PDF (if applicable)
- Output JSON - All processed chunks and segments
- Images - All cropped segment images and page images
- Configuration - All processing settings
Common Use Cases
- Cleanup: Remove old or unnecessary tasks to free up storage
- Privacy: Delete sensitive documents after processing
- Testing: Clean up test tasks during development
- Error Recovery: Remove failed tasks that won’t be retried
Best Practices
- Download First: If you need the output data, retrieve it via GET /task/ before deleting
-
Check Status: Verify the task is in a deletable state (
Succeeded,Failed, orCancelled) - Batch Operations: If deleting multiple tasks, implement rate limiting to avoid overwhelming the API
-
Expiration Alternative: Consider using the
expires_inparameter when creating tasks instead of manual deletion
Error Handling
Related Endpoints
- Cancel Task - Cancel a task that is
StartingorProcessing - Get Task - Retrieve task data before deletion
- List Tasks - Find tasks to delete