Need to delete the data from Indices A based on Indices B

HI, Is there any solution to delete the data from Indices A which are not exists(based on key) in Indices B in elasticsearch.

Can you kindly elaborate your issue

Please find the sample test data.

Indices A

ID Name
1 king
2 charles
3 Joy

Indices B

ID Name
1 King
3 Joy

Now I need to delete data from Indices A based on Indices B (id is Key).
If ID is not exist in Indices B then delete that data from Indices A

So finally I will need to get the Data from Indices A as below

ID Name
1 King
3 Joy

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.