Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2012 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2792590 to your computer and use it in GitHub Desktop.
Save anonymous/2792590 to your computer and use it in GitHub Desktop.
Delete Example Alias, Index, Template
#!/bin/sh
HOST_ID="localhost"
curl -XPOST "http://$HOST_ID:9200/_aliases" -d '
{
"actions" : [
{ "remove" : { "index" : "abbreviation_example_1", "alias" : "abbreviation_example" } }
]
}'
echo;
curl -XDELETE "http://$HOST_ID:9200/abbreviation_example_1/"
echo;
curl -XDELETE "http://$HOST_ID:9200/_template/abbreviation_example_template"
echo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment