How do I discard old job logs?

Is there a way to limit pipelines/job history for a project?

I have scheduled pipeline. It produces pipelines/jobs history.

How do I limit the history depth in project? I.e. how may I discard everything older than 2 weeks at pipelines index page, for example?

Is it an implemented feature?

Thank you!