Skip to main content
DELETE
/
api
/
kb
/
collections
/
{collection_name}
Delete Collection Api
curl --request DELETE \
  --url https://api.example.com/api/kb/collections/{collection_name} \
  --header 'Authorization: Bearer <token>'
{
  "status": "<string>",
  "collection": "<string>",
  "message": "<string>",
  "warnings": [
    "<string>"
  ],
  "affected_documents": [
    {
      "doc_id": "<string>",
      "status": "pending",
      "message": "<string>"
    }
  ],
  "deleted_counts": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

collection_name
string
required

Response

Successful Response

Response payload for collection-level management operations.

status
string
required

Operation status: success|partial_success|error

collection
string
required

Collection identifier affected by the operation

message
string
required

Human-readable summary of the collection operation

warnings
string[]

Non-fatal issues encountered while processing the collection

affected_documents
CollectionOperationDetail · object[]

Subset of documents impacted by the collection operation

deleted_counts
Deleted Counts · object

Aggregated deletion counts per table when applicable