Respond to a file being deleted.
$file: The file that has just been deleted.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_file_delete($file) {
// Delete all information associated with the file.
db_delete('upload')
->condition('fid', $file->fid)
->execute();
}