Hi @lshmikanth,
Have you considered using other methods such as:
- Index Lifecycle Management (ILM): This can be found here.
- Delete by Query with Slices: Detailed documentation is available here.
Regarding the delete by query, these articles might help you: