DELETE
/
v1
/
namespace
/
{namespaceId}
/
documents
/
{documentId}
curl --request DELETE \
  --url https://api.agentset.ai/v1/namespace/{namespaceId}/documents/{documentId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "ingestJobId": "<string>",
    "externalId": null,
    "name": null,
    "tenantId": null,
    "status": "BACKLOG",
    "error": null,
    "source": {
      "type": "TEXT",
      "text": "<string>"
    },
    "properties": null,
    "totalChunks": 123,
    "totalTokens": 123,
    "totalCharacters": 123,
    "totalPages": 123,
    "createdAt": "<string>",
    "queuedAt": null,
    "preProcessingAt": null,
    "processingAt": null,
    "completedAt": null,
    "failedAt": null
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Headers

x-tenant-id
string

The tenant id to use for the request. If not provided, the default tenant will be used.

Path Parameters

namespaceId
string
required

The id of the namespace to delete.

documentId
string
required

The id of the document to delete.

Response

204
application/json
The deleted document
success
boolean
required
data
object
required