Milvus Delete

Milvus Delete

Certified

Delete rows from a Milvus collection

Deletes rows by a list of primary key IDs, or by a scalar filter expression. Exactly one of ids or filter must be set.

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

Delete rows by primary key ID.

yaml
id: milvus_delete
namespace: company.team

tasks:
  - id: delete_rows
    type: io.kestra.plugin.milvus.Delete
    uri: http://localhost:19530
    token: "{{ secret('MILVUS_TOKEN') }}"
    collectionName: documents
    ids: [1, 2, 3]

Delete rows matching a scalar filter expression.

yaml
id: milvus_delete_by_filter
namespace: company.team

tasks:
  - id: delete_rows
    type: io.kestra.plugin.milvus.Delete
    uri: http://localhost:19530
    token: "{{ secret('MILVUS_TOKEN') }}"
    collectionName: documents
    filter: "city == 'Berlin'"
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-milvus --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 name

The name of the collection to delete rows from.

Milvus server URI

The URI of the Milvus server or Zilliz Cloud endpoint, e.g. http://localhost: 19530.

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

Database name

The Milvus database to operate against. Defaults to the server's default database when not set.

Scalar filter expression

A Milvus boolean filter expression; every row matching it is deleted. Mutually exclusive with ids. Unset by default.

Primary key IDs to delete

A list of primary key values to delete. Mutually exclusive with filter. Unset by default.

Partition name

Optional partition to scope the delete to. Defaults to every partition.

Password

Password for a self-hosted Milvus instance with username/password authentication enabled.

API token

The API token for authentication, typically used with Zilliz Cloud or a Milvus instance with token-based auth enabled.

Username

Username for a self-hosted Milvus instance with username/password authentication enabled. Leave unset if using a token or an unauthenticated instance.

Default0

Number of deleted rows