Ah, ok. On the server that is. Good.
getting the value of that checkbox can be done with
That value will always be empty if it wasn't checked, and will have the path if it was checked.
So just loop through all your boxes and unlink() the files for the checkboxes that aren't empty.