Delete old .ts segments as time passes

Is there a way to activate this option with ffmpeg withing my dvr ui interface? Somemetimes I watch a channel for more than an hour and I can see old segments are not deleted. Is there a way to only store few segments as live channel goes??

Thanks in advance.

How many segments do you see? They should be deleted already after an hour passes.