file_delete

Versions
4.6 – 6
file_delete($path)
7
file_delete(stdClass $file, $force = FALSE)

Code

includes/file.inc, line 363

<?php
function file_delete($path) {
  if (is_file($path)) {
    return unlink($path);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.