MongoDB Data Purging Automation

Thanks @tapiocaPENGUIN ,

@tapiocaPENGUIN

  1. Can we use some kind of shell/programming language script for mongodb data purging?

  2. If we enable TTL then how to ensure backup? Does it apply to data present in mongodb which is there before we creation of TTL?