file_delete($path)
drupal/includes/file.inc, line 463
Delete a file.
$path A string containing a file path.
True for success, FALSE for failure.
| Name | Description |
|---|---|
| File interface | Common file handling functions. |
function file_delete($path) {
if (is_file($path)) {
return unlink($path);
}
}