
Meilisearch DocumentDelete
CertifiedDelete documents from Meilisearch
Meilisearch DocumentDelete
Delete documents from Meilisearch
Deletes one, multiple, or all documents, or documents matching a filter expression from a Meilisearch index.
Exactly one target (documentId, documentIds, filter, or deleteAll: true) must be specified.
When using filter, the referenced attributes must be configured in the index's filterableAttributes settings.
type: io.kestra.plugin.meilisearch.DocumentDeleteExamples
Delete a single document by ID
id: meilisearch_delete_single
namespace: company.team
tasks:
- id: delete_document
type: io.kestra.plugin.meilisearch.DocumentDelete
url: "http://localhost:7700"
key: "{{ secret('MEILISEARCH_MASTER_KEY') }}"
index: "movies"
documentId: "123"
Delete multiple documents by ID list
id: meilisearch_delete_batch
namespace: company.team
tasks:
- id: delete_documents
type: io.kestra.plugin.meilisearch.DocumentDelete
url: "http://localhost:7700"
key: "{{ secret('MEILISEARCH_MASTER_KEY') }}"
index: "movies"
documentIds:
- "123"
- "456"
Delete documents by filter
id: meilisearch_delete_by_filter
namespace: company.team
tasks:
- id: delete_filtered
type: io.kestra.plugin.meilisearch.DocumentDelete
url: "http://localhost:7700"
key: "{{ secret('MEILISEARCH_MASTER_KEY') }}"
index: "movies"
filter: "genre = 'horror'"
Delete all documents in an index
id: meilisearch_delete_all
namespace: company.team
tasks:
- id: purge_index
type: io.kestra.plugin.meilisearch.DocumentDelete
url: "http://localhost:7700"
key: "{{ secret('MEILISEARCH_MASTER_KEY') }}"
index: "movies"
deleteAll: true
Properties
index *string
Index
Name of the Meilisearch index.
key *string
Meilisearch connection key
url *string
Meilisearch connection URL
assets
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.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset 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.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150deleteAll booleanstring
falseDelete all
Whether to delete all documents in the index. Defaults to false.
documentId string
Document ID
Identifier of a single document to delete.
documentIds array
Document IDs
List of document identifiers to delete.
filter string
Filter
Filter expression matching documents to delete.
Note: Filter expressions require the attributes used to be declared in the index's filterableAttributes settings.
waitForIndexing booleanstring
trueWait for indexing
Whether to wait for the deletion task to complete; the run fails if the task fails. Disable for fire-and-forget behavior.
waitTimeout string
PT5MWait timeout
Maximum time to wait for the deletion task when waitForIndexing is enabled.
Outputs
documentsDeleted integer
Documents deleted
Total number of documents deleted. Only available when waitForIndexing is true.
taskUid integer
Task UID
UID of the Meilisearch deletion task enqueued.
Metrics
documentDeleted counter
The number of documents deleted from Meilisearch