Recursively delete small files PHP script

How to recursively delete small files, smaller than 10 kilobytes regardless on their creation time, format or name?

PHP script needs to go through cache folder and all sub folders and delete files smaller than 10 KB. It would be nice to show list of deleted files, but it is not must. Also it would be nice if script can be set via cron job, but also it is not must, it can do manually too.

P.S. I am not programmer, so I need already made script or at least pretty much made :slight_smile:

Best regards.

Sponsor our Newsletter | Privacy Policy | Terms of Service