Delete Document

Soft-delete a document from a knowledge base. For connector-sourced documents, this also prevents re-import on future syncs.

DELETE/api/v1/knowledge/{id}/documents/{documentId}
X-API-Key<token>

Your SteelEngine API key (personal or workspace). Generate one from the SteelEngine dashboard under Settings > API Keys.

In: header

Path Parameters

id*string

Knowledge base ID.

documentId*string

Document ID.

Query Parameters

workspaceId*string

The unique identifier of the workspace.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v1/knowledge/string/documents/string?workspaceId=string"
{  "success": true,  "data": {    "message": "Document deleted successfully"  }}