Weaviate Delete

Weaviate Delete

Certified

Delete objects from a Weaviate collection

Deletes a single object by ID, or every object matching filter and/or filters. Deleting a whole collection's objects requires deleteAll: true, so an empty filter can never wipe a collection by accident.

yaml
type: io.kestra.plugin.weaviate.Delete

Delete one object by ID.

yaml
id: weaviate_delete_by_id
namespace: company.team

tasks:
  - id: delete
    type: io.kestra.plugin.weaviate.Delete
    url: https://demo-cluster-id.weaviate.cloud
    apiKey: "{{ secret('WEAVIATE_API_KEY') }}"
    className: WeaviateObject
    objectId: "{{ outputs.previous.row.uuid }}"

Delete archived objects older than a date.

yaml
id: weaviate_delete_by_filter
namespace: company.team

tasks:
  - id: delete
    type: io.kestra.plugin.weaviate.Delete
    url: https://demo-cluster-id.weaviate.cloud
    apiKey: "{{ secret('WEAVIATE_API_KEY') }}"
    className: WeaviateObject
    filters:
      - property: status
        operator: EQUAL
        value: archived
      - property: updatedAt
        operator: LESS_THAN
        value: "2025-01-01T00:00:00Z"
        valueType: DATE
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-weaviate --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.

Properties

Collection (class) to delete from

Min length1

Configure Weaviate endpoint URL

HTTP(S) URL of the Weaviate server, including the port when it is not the scheme default. Without a scheme, https is assumed. Example: http://localhost: 8080 or https://cluster-id.weaviate.cloud. Weaviate Cloud URLs (*.weaviate.cloud, *.weaviate.network) are detected automatically. Requires Weaviate 1.32 or later.

Provide managed cluster API key

Optional API key; required for Weaviate Cloud. If omitted, requests use anonymous access.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaultfalse

Delete every object in the collection

Required to delete without objectId or filters. The collection and its schema are kept.

Defaulttrue

Fail when Weaviate rejects a deletion

When false, the task succeeds and reports rejected deletions through success: false and a warning. Deleting an objectId that does not exist is not a rejection: the task succeeds with deletedCount: 0.

Simple property filter

Map of property to value, combined with AND. Text values use LIKE (so * wildcards work); other values use EQUAL.

Structured property filters

List of conditions combined with filtersOperator. When filter is also set, both must match.

Definitions

Compares property to value with operator. Use _id for the object UUID and _creationTimeUnix or _lastUpdateTimeUnix for object timestamps (these need indexTimestamps enabled on the collection).

operator*string
Possible Values
EQUALNOT_EQUALGREATER_THANGREATER_THAN_EQUALLESS_THANLESS_THAN_EQUALLIKECONTAINS_ANYCONTAINS_ALLCONTAINS_NONEIS_NULL

Comparison operator

property*string
Min length1

Property name

valueobject

Value to compare against

A scalar, or a list for the CONTAINS_* operators. For IS_NULL, true (default) matches missing values and false matches present ones.

valueTypestring
Possible Values
TEXTINTNUMBERBOOLEANDATEUUID

Force the value type

Weaviate filters are typed. Without this, the type is inferred from the YAML value, so set it for dates (DATE), UUIDs (UUID), or numbers stored as number but written as integers (NUMBER).

DefaultAND
Possible Values
ANDOR

How to combine filters

Override gRPC host

Host of the Weaviate gRPC endpoint, used for queries and batch inserts. Defaults to the host of url, or to the grpc- prefixed host on Weaviate Cloud.

Override gRPC port

Port of the Weaviate gRPC endpoint, between 1 and 65535. Defaults to 50051, or 443 on Weaviate Cloud. gRPC uses TLS when url is https.

Set custom request headers

Key/value headers sent with every REST and gRPC call, e.g. vectorizer API keys such as X-OpenAI-Api-Key. Values that are credentials should come from {{ secret('...') }}. The plugin also sends an X-Weaviate-Client-Integration header identifying itself; setting that key here overrides it.

Object ID to delete

When set, deletes only this object; filter, filters and deleteAll must not be set.

Set request timeout

Timeout applied to connection, query and insert requests. Defaults to the Weaviate client defaults (30s connect, 60s query, 120s insert).

Tenant

Tenant to delete from, for multi-tenant collections.

Collection where objects were deleted

Default0

Number of deleted objects

SubTypestring

IDs of deleted objects

Capped at 10000 entries; see idsTruncated.

Defaultfalse

Whether ids was capped

Whether every matching object was deleted