Initiates asynchronous deletion of a document and all associated data.
This endpoint queues a deletion task for background processing, making it suitable for large documents or when non-blocking operation is required. The task can be monitored using the returned task ID.
If an ingestion task is currently running for the same document, it will be automatically revoked before initiating the deletion.
JSON request body containing deletion parameters and optional callback configuration for asynchronous processing notifications
Request body for asynchronous document deletion.
Document deletion parameters including collection and artifact identifiers
{
"artifact": "q2_2023_report",
"collection": "financial_reports"
}
{
"artifact": "outdated_policy_manual",
"collection": "hr_documents"
}
Optional callback configuration for receiving asynchronous task notifications
{
"amqp": {
"exchange": "ingest",
"routing_key_done": "ingest.done",
"routing_key_error": "ingest.error"
},
"properties": { "key": "value" }
}
Successfully initiated deletion task
Represents an asynchronous task that has been queued.
Unique identifier for the asynchronous task, used to track progress and retrieve results
"123e4567-e89b-12d3-a456-426614174000"
"revoked"