In my ElasticSearch server, I have alias "my-alias-1" pointing to an unknown index.
How can I removed the alias using Python? The doc I search always show I need to know the index name as well.
In my ElasticSearch server, I have alias "my-alias-1" pointing to an unknown index.
How can I removed the alias using Python? The doc I search always show I need to know the index name as well.
if you're using the elasticsearch-py client, the low level one - https://elasticsearch-py.readthedocs.io/en/0.4.3/api.html#elasticsearch.client.IndicesClient.delete_alias
if you're using another library or client, then you need to do the equivalent of sending a HTTP DELETE my-alias-1 request to Elasticsearch