@NogDogSep 13.2012 — #No need for FTP, assuming we're talking the local file system. Just use glob() or readdir() (I find glob() easier to use). [code=php] $files = glob('path/to/dir/*'); foreach($files as $file) { if( ! is_dir($file) and filesize($file) < 100) { unlink($file); } } [/code] Caveat: the above is untested, so use at your own risk. ?