Artifacts
Artifacts
Delete Document Asynchronously
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.
post/v1/artifacts/delete/async
Request body
Example request
{
"callback": {
"amqp": {
"exchange": "deletion_events",
"routing_key_done": "delete.completed",
"routing_key_error": "delete.failed",
"routing_key_progress": "delete.progress"
}
},
"delete_body": {
"artifact": "obsolete_report_2022",
"collection": "financial_reports"
}
}Response
Successfully initiated deletion task
Example response
{
"task_id": "123e4567-e89b-12d3-a456-426614174000"
}