0

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.

2
  • can't you just query the index behing the alias ? Commented Feb 23, 2022 at 20:25
  • If you know alias name, how is that hard to delete the alias ? Or do you want to delete index too ? Commented Feb 23, 2022 at 20:26

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.