Delete objects in batch
Removes multiple data objects based on a filter specified in the request body.
Deletion occurs based on the filter criteria provided in the where clause. There is a configurable limit (default 10,000, set via QUERY_MAXIMUM_RESULTS) on how many objects can be deleted in a single batch request to prevent excessive resource usage. Objects are deleted in the order they match the filter. To delete more objects than the limit allows, repeat the request until no more matching objects are found.
Request
- Base URL: https://localhost:8080/v1
- URL: https://localhost:8080/v1/batch/objects
- Auth: one of:
- none
- OAuth 2 (implicit, authorization URL http://to-be-configured-in-the-application-config)
Query parameters
Determines how many replicas must acknowledge a request before it is considered successful.
Specifies the tenant in a request targeting a multi-tenant collection (class).
Request body
Example request
{
"match": {
"class": "City",
"where": {
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
],
"valueStringArray": [
"my search term"
],
"valueTextArray": [
"my search term"
]
}
}
}Response
Request processed successfully. See response body for matching objects and deletion results.
Example response
{
"match": {
"class": "City",
"where": {
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
],
"valueStringArray": [
"my search term"
],
"valueTextArray": [
"my search term"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.