younifyd
Menu

Delete objects in batch

Delete objects in batch

DELETE/v1/batch/objects

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Delete objects in batch action (under batch).
  3. Fill in the fields below, then reference the result from later steps as {{deleteObjectsInBatch.response.data}}.

Request

Query parameters

consistency_levelstring

Determines how many replicas must acknowledge a request before it is considered successful.

tenantstring

Specifies the tenant in a request targeting a multi-tenant collection (class).

Request body

Enter the body as JSON in the step's Body field.

matchobject

Outlines how to find the objects to be deleted.

classstring

The name of the collection (class) from which to delete objects.

whereobject16 fields

Filter search results using a where filter.

outputstring

Controls the verbosity of the output, possible values are: `minimal`, `verbose`. Defaults to `minimal`.

Default "minimal"

deletionTimeUnixMilliinteger (int64)

Timestamp of deletion in milliseconds since epoch UTC.

dryRunboolean

If true, the call reports what the filter matches and deletes nothing. <br/><br/>Depending on the configured verbosity, you will either receive a count of matched objects, or a list of IDs. With a positive [`QUERY_MAXIMUM_RESULTS`](https://docs.weaviate.io/deploy/configuration/env-vars#QUERY_MAXIMUM_RESULTS) the count stops one above it, and the list holds at most `QUERY_MAXIMUM_RESULTS` IDs. Repeating the dry run reports the same count; for an exact total use an aggregate count, which resolves no objects.

Default false

json
{
  "match": {
    "class": "City",
    "where": {
      "operands": [
        {}
      ],
      "operator": "GreaterThanEqual",
      "path": [
        "inCity",
        "city",
        "name"
      ],
      "valueInt": 2000,
      "valueNumber": 3.14,
      "valueBoolean": false,
      "valueString": "my search term",
      "valueText": "my search term",
      "valueDate": "TODO",
      "valueIntArray": "[100, 200]",
      "valueNumberArray": [
        3.14
      ],
      "valueBooleanArray": [
        true,
        false
      ]
    }
  },
  "output": "minimal",
  "deletionTimeUnixMilli": 0,
  "dryRun": false
}

Response

Returns 200 with a any. Read it in later steps with {{deleteObjectsInBatch.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.

Delete objects in batch — Weaviate — Documentation