I want to to destroy all images within a folder with PHP how can I do this?
The easiest (non-recursive) way is using glob():
$files = glob('folder/*.jpg'); foreach($files as $file) { unlink($file); }