curl --request POST \
--url https://api.conare.ai/namespaces/{namespace}/documents/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"refunds",
"returns"
]
}
'{
"deleted": 2,
"more": false
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}Delete documents by id or filter
Send ids (1-1000 document ids) or filter (the query’s metadata filter, with at least one
condition). Ids that do not exist are skipped. A filter call deletes whole documents, up to
10,000 chunks of them, and answers more: true while matches remain: call again until it is
false. Separate filters can run in parallel. To delete every document, delete the namespace.
A document rewritten during a filter call (and perhaps no longer matching) is not deleted; 409
conflict means that happened repeatedly. Any failed call is safe to retry.
curl --request POST \
--url https://api.conare.ai/namespaces/{namespace}/documents/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"refunds",
"returns"
]
}
'{
"deleted": 2,
"more": false
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}Authorizations
An API key from conare.ai/console/keys. It can read and write every namespace in its organization.
Path Parameters
The namespace name.
1-64 characters of a-z 0-9 _ -, starting with a letter or digit.
^[a-z0-9][a-z0-9_-]{0,63}$"docs"
"user-42"
Body
1 - 1000 elements1-256 characters of A-Z a-z 0-9 . _ : -, starting with a letter or digit.
^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$A metadata filter; it matches values exactly. {"key": value} means equals (a string also
matches an array holding it); $eq is the same and $in matches any listed value. Combine
filters with $and and $or arrays. Values compare as text (3 matches "3"). $ne,
$nin and the range operators are not supported (400 invalid_filter).
Show child attributes
Show child attributes
{ "team": "support" }
{
"$or": [
{ "team": "support" },
{ "year": { "$in": [2024, 2025] } }
]
}