How to set up Cleanup Policies?

This is what I want, thank you