What is the retention policy and how exactly it work?

I hope the answer over here helps.