Periodically cleans files from directories given some criteria.