file_delete
- Versions
- 4.6 – 6
file_delete($path)- 7
file_delete(stdClass $file, $force = FALSE)
Delete a file.
Parameters
$path A string containing a file path.
Return value
True for success, FALSE for failure.
Related topics
Code
includes/file.inc, line 463
<?php
function file_delete($path) {
if (is_file($path)) {
return unlink($path);
}
}
?>Login or register to post comments 