Skip to main content
DELETE
/
v2
/
knowledge
/
{knowledge_id}
/
datasources
/
{datasource_id}
/
chunks
Delete multiple chunks
curl --request DELETE \
  --url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chunk_ids": [
    "<string>"
  ]
}'
{
  "deleted_count": 123,
  "failed_ids": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

knowledge_id
string
required

The unique identifier of the knowledge base

datasource_id
string
required

The unique identifier of the datasource.

Body

application/json
chunk_ids
string[]
required

Array of chunk IDs to delete

Required array length: 1 - 100 elements

Response

200 - application/json

Chunks deletion result

deleted_count
number
required

Number of chunks successfully deleted

failed_ids
string[]

Array of chunk IDs that failed to delete