How to automatically delete posts after some time?

Many thanks … exactly what I wanted to know… Thanks!