Index Operation Update and delete existing records in elastic search

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Update is like an index operation. Just send again the same request and you're done.
Delete. What did you try so far?