f::remove PHP Method

remove() static public method

Deletes a file
static public remove ( string $file ) : boolean
$file string The path for the file
return boolean
    static function remove($file)
    {
        return file_exists($file) && is_file($file) && !empty($file) ? @unlink($file) : false;
    }

Usage Example

Example #1
0
 protected function delete($name, $output)
 {
     if ($file = f::resolve($this->root() . DS . $name, ['yaml', 'yml', 'php'])) {
         f::remove($file);
     }
     $output->writeln('<comment>The "' . $name . '" blueprint has been deleted!</comment>');
     $output->writeln('');
 }
All Usage Examples Of f::remove