To delete files from your server (which is what I'm guessing you want to do, you need to use unlink(). There is no delete. Also, your foreach construct should probably look something like below:
<form method="post" action="delete.php">
Image 1: <input type="checkbox" name="file[]" value="image1.jpg"><br>
Image 2: <input type="checkbox" name="file[]" value="image2.jpg"><br>
Image 3: <input type="checkbox" name="file[]" value="image3.jpg"><br>
Image 4: <input type="checkbox" name="file[]" value="image4.jpg"><br><br>
<input type="submit" value="Delete"></form>
Then delete.php would look something like this:
foreach($_POST['file'] as $value) {
unlink($path/$value);
}
You may want to display something to the visitor, but this should successfully delete the files off the server, assuming $path holds the correct path to the file.
Cgraz