1

I know that each document in my database has a unique '_id'. Is it possible to delete a specific document using its _id attribute? If so, how?

1 Answer 1

1

Yes, you can achieve that using the delete method

es.delete(index = "my_index", doc_type = "my_type", id = "1234")
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.