'How to do a cleanup in sharded cluster on MongoDb?

I want to do bulk deletion operation on the Sharded Cluster of Mongo data base, should I use TTL index or proceed with normal bulk deletion method ? please help me with the steps and procedure to -

  1. Delete documents
  2. merge empty chunks
  3. delete empty indexes
  4. free up the space on sharded cluster


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source