Portal Community

When to Use

Irreversible. Deleting an index permanently destroys all documents it contains. There is no undo. Always use index/get before this node to verify you have the correct index name, especially when the name is built from an expression. Never use wildcard expressions in automated deletion workflows without an explicit confirmation gate.

Configuration

Connection

FieldRequiredDescription
HostRequiredElasticsearch cluster URL, e.g. https://localhost:9200.
UsernameOptionalElasticsearch username (required if security is enabled).
PasswordOptionalPassword for the specified username.
IgnoreSSLOptionalDefault false. Skip TLS validation. Development use only.

Operation

FieldRequiredDescription
IndexNameRequiredThe exact name of the index to delete. Supports BizFirst expressions for dynamic names, e.g. {{ $json.indexName }}. Double-check the resolved value before executing in production.

Validation Errors

Error CodeCause
VAL_MISSING_INDEX_NAMEIndexName is empty.

Output

Success Port

Returns the Elasticsearch delete index response confirming the deletion. The response includes an acknowledged: true field when the cluster has confirmed the index is removed.

Error Port

Fires when the index does not exist (404), authentication fails, or the configured user lacks delete permissions. The error output contains errorCode and message fields.

Index not found: If the index does not exist, the operation routes to the error port. In idempotent cleanup workflows, you may intentionally ignore this error — connect the error port to a "continue" branch and check {{ $output.deleteIndex.errorCode }} to distinguish "not found" from other failures.

Examples

Delete a Specific Index

{
  "resource": "index",
  "operation": "delete",
  "IndexName": "temp-import-staging"
}

Deletes the temporary staging index after a data import workflow completes. Connect the success port to a completion notification node.

Retention Policy — Delete Old Log Index

{
  "resource": "index",
  "operation": "delete",
  "IndexName": "{{ $json.indexName }}"
}

Used inside a loop node iterating over indices returned by index/getMany. The outer workflow filters indices by name pattern and age, then passes each to this delete node. Only process indices you have explicitly identified as safe to delete.

Re-Index Pattern — Delete Before Recreate

{
  "resource": "index",
  "operation": "delete",
  "IndexName": "products"
}

Step 1 of a re-index workflow: delete the existing index. Connect the success port to an index/create node with updated mappings. Connect the index/create success port to a document/create bulk node to re-populate with fresh data. Always validate the new mappings in a non-production environment first.