Skip to content

Instantly share code, notes, and snippets.

@portante
Last active March 22, 2018 15:25
Show Gist options
  • Select an option

  • Save portante/fece96326495d1b0d1287d539f3caa7e to your computer and use it in GitHub Desktop.

Select an option

Save portante/fece96326495d1b0d1287d539f3caa7e to your computer and use it in GitHub Desktop.
Delete an index
#!/bin/bash
ES_URL='https://localhost:9200'
curl_del='curl -s -X DELETE --cacert /etc/elasticsearch/secret/admin-ca --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key'
$curl_del $ES_URL/${1}?pretty=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment