| Versions | |
|---|---|
| 4.7 – 6 | file_delete( |
| 7 | file_delete(stdClass $file, $force = FALSE) |
Delete a file.
$path A string containing a file path.
True for success, FALSE for failure.
includes/
<?php
function file_delete($path) {
if (is_file($path)) {
return unlink($path);
}
}
?>