Elasticsearch · Arazzo Workflow
Elasticsearch Tear Down an Index
Version 1.0.0
Confirm an index exists, capture its definition for the record, delete it, and verify it is gone.
Provider
Workflows
teardown-index
Safely delete an Elasticsearch index after recording its definition, then verify the deletion.
Probes for the index, ends cleanly when it does not exist, snapshots its settings and mappings into the workflow outputs, deletes it, and confirms with a second probe that it is gone.
1
probeIndex
indexExists
Probe for the index. A 404 means there is nothing to tear down, which is a successful no-op rather than an error, so the workflow ends there.
2
captureDefinition
getIndex
Read the index definition before deleting it, so the settings and mappings are preserved in the workflow outputs and the index can be recreated.
3
deleteIndex
deleteIndex
Delete the index and every document in it. This is irreversible without the definition captured in the previous step and a fresh reload of the data.
4
verifyGone
indexExists
Re-probe the index. A 404 is now the desired outcome and confirms the delete was applied rather than merely acknowledged.