public function delete()
    {
        if (!$this->exists()) {
            return false;
        }
        if ($this->isDir()) {
            return rmdir($this->absoluteFileName);
        }

        return unlink($this->absoluteFileName);
    }
public function delete()
    {
        if (!$this->exists()) {
            return false;
        }
        if ($this->isDir()) {
            return rmdir($this->absoluteFileName);
        }

        return unlink($this->absoluteFileName);
    }
public function delete ( ) { if ( ! $ this -> exists ( ) ) { return false ; } if ( $ this -> isDir ( ) ) { return rmdir ( $ this -> absoluteFileName ) ; } return unlink ( $ this -> absoluteFileName ) ; }
tries to delete a file
@return bool
tries to delete a file