Skip to main content
DELETE
/
api
/
v2
/
search_engines
/
{hashid}
/
indices
/
{name}
/
items
/
_bulk
Delete in bulk
curl --request DELETE \
  --url https://{search_zone}-api.doofinder.com/api/v2/search_engines/{hashid}/indices/{name}/items/_bulk \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "id": "1234"
  }
]
'
{
  "results": [
    {
      "result": "updated",
      "id": "1234"
    }
  ],
  "errors": false
}

Authorizations

Authorization
string
header
required

Doofinder API key. Pass it as: Authorization: Token <api_key>

Path Parameters

hashid
string
required

Unique id of a search engine.

Pattern: ^[a-f0-9]{32}$
name
string
required

Name of an index.

Pattern: ^[a-z][a-z0-9_]*$

Body

application/json
Required array length: 1 - 100 elements
id
string

Unique identifier of the item.

Example:
[{ "id": "1234" }]

Response

Bulk operation successful.

Result for bulk operations.

results
object[]

List of results of each bulk operation.

errors
boolean

Indicates if there is any error in the results.