Elastic.Index.delete
You're seeing just the function
delete
, go back to Elastic.Index module for more information.
Deletes the specified index.
If you've configured index_prefix
and use_mix_env
for Elastic, it will use those.
Examples
# With index_prefix set to 'elastic'
# And with `use_mix_env` set to `true`
# This will delete the `elastic_dev_answer` index
Elastic.Index.delete("answer")