Skip to content

Delete a RAG document for an account

DELETE
/v1/t/adapters/llm/rag/document/{id}
curl --request DELETE \
--url https://example.com/v1/t/adapters/llm/rag/document/example \
--header 'Authorization: Bearer <token>'

Permission

This operation needs the permission tenant:scenario_template:manage.

id
required
string

RAG document id.

X-Tenant-Sid
string

Names the target tenant.

By principal:

  • A tenant-scoped principal may omit it.
  • A principal with no tenant of its own names one here.

Refused when:

  • A tenant-scoped principal sends a value naming any other tenant.
  • A principal with no tenant of its own omits it.

Deleted

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Invalid request body or parameters

Media typeapplication/json

Flat error shape emitted by the RAG document, public models and admin registry handlers. details is present only on validation failures that carry per-field diagnostics.

object
error
required
string
details
string
Examplegenerated
{
"error": "example",
"details": "example"
}

Unauthorized

Forbidden

Bad gateway (upstream adapter error)