Best practice to delete deprecated files periodically

Hi All,

We have phabricator integrated with Jenkins, which uploads build images to pharbricator files. (https:///file/query/all/).

The issue is it’s occupying more and more space and we would like to delete files that are older than 3 months periodically.

What’s the best approach to this?