I need a policy in Ranger or some other component which would delete my data automatically after a set period. How can I do that in Ranger ? I didn't see any examples where I could define a way to delete content from HDFS path automatically.
Ranger cannot perform this tasks.
Apache Falcon is the one which can do work (however Falcon is deprecated as of HDP2.6.5 and DLM has these features now):
Hope this helps.