Delete Document
delete
/v1/documents/{document_id}Soft-deletes a document in the caller's workspace. Side effect: stamps deleted_at so the document drops out of reads. The stored file is retained by the storage layer. Returns no body.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| document_id | string <uuid> | Yes | Public UUID of the document.e.g. 4e5f6071-8293-4a4b-95c6-d7e8f9a0b1c2 |
Request
cURL
curl -X DELETE https://api.wellapp.ai/v1/documents/{document_id} \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
204 — The document was soft-deleted.
401 — Unauthorized
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}403 — Forbidden
{
"code": "FORBIDDEN",
"status": 403,
"title": "Forbidden",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Not Found
{
"code": "NOT_FOUND",
"status": 404,
"title": "Not Found",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}