How to automatically delete posts after some time?

You can find that option in the Topic Timers, in the admin wrench for the topic.

And you’re looking for the ‘Auto-Delete Replies’ option from the top box: