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 https://gitlab.com/prj/-/pipelines, for example?

Is it an implemented feature?

Thank you!