Skip to main content
POST
/
api
/
kb
/
collections
/
batch-delete
Batch Delete Collections Api
curl --request POST \
  --url https://api.example.com/api/kb/collections/batch-delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "collection_names": [
    "<string>"
  ]
}
'
{
  "deleted": [
    "<string>"
  ],
  "failed": [
    {
      "name": "<string>",
      "error": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.xagent.run/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body for batch delete collections.

collection_names
string[]
required

List of collection names to delete

Required array length: 1 - 200 elements

Response

Successful Response

Response for batch delete collections.

deleted
string[]

Collection names that were deleted successfully

failed
BatchDeleteFailureItem · object[]

Collection names that failed to delete with reasons