What is the best way to delete document from a massive index?

Hi Experts,

I got a requirement , I need to delete some documents from an existing index also i want to optimize the disk sapce after deletion, so experts are saying it is not recommended to delete document from huge index (I have 2 TB in size), so batter to reindex it .What I believe is re-indexing is useful when we want to change the mapping but here i want to delete documents . I do not know what is the best way to do this .


The method you are using here is the recommended way - Delete by query is not deleting documents from an Index