Delete more than 2Milion docs

Can somebody tell me How can I do this.
I've tried to use delete by query but it doesn't drop it all

What do you mean by "doesn't drop it all"? Even if you delete documents, the disk size may not decrease unless segments are merged. You may have to do force merge to ensure that segments are merged, and the disk space for deleted docs is reclaimed.

How many docs does your index contain overall? If you want to delete a big part of your index, you might as well reindex only necessary docs to a new index. Reindex API with a query parameter can help you in this case.

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