public function deleteAll()
    {
        if ($this->isAbsolute()) {
            if ($this->isFile() || $this->isLink()) {
                // delete file and symlink
                return unlink($this->getPathname());
            } elseif ($this->isDir()) {
                // delete directories and its content
                return $this->deleteAction($this->getPathname(), true);
            }
            return false;
        } else {
            throw new FileException('Given file path is not a absolute path.');
        }
    }
public function deleteAll()
    {
        if ($this->isAbsolute()) {
            if ($this->isFile() || $this->isLink()) {
                // delete file and symlink
                return unlink($this->getPathname());
            } elseif ($this->isDir()) {
                // delete directories and its content
                return $this->deleteAction($this->getPathname(), true);
            }
            return false;
        } else {
            throw new FileException('Given file path is not a absolute path.');
        }
    }
public function deleteAll ( ) { if ( $ this -> isAbsolute ( ) ) { if ( $ this -> isFile ( ) || $ this -> isLink ( ) ) { // delete file and symlink return unlink ( $ this -> getPathname ( ) ) ; } elseif ( $ this -> isDir ( ) ) { // delete directories and its content return $ this -> deleteAction ( $ this -> getPathname ( ) , true ) ; } return false ; } else { throw new FileException ( 'Given file path is not a absolute path.' ) ; } }
delete the file or directory with its content of the current file path

@return      bool            true if file or directory was deleted, false if file or directory was not found
@throws      FileException
delete the file or directory with its content of the current file path