What happened to deleted indices, shards and replicas?

I had confusion about elasticsearch DELETE API. If I delete induces through DELETE API, what will happen to shards and replicas?

I have 3 data nodes, so will it delete data and free up the space? If not how to free up disk by removing indices and replicas that already deleted.

I want to delete indices older than 2 months to free up space automatically. How can I do that?

Thanks.

Hi @varun1992,

Once you delete the index from the elasticsearch cluster, its shards and replicas are also deleted.

Regards
Nikhil Kapoor

thanks for help

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