public function delete() : bool
    {
        $removed = null;

        if ($this->isDirectory()) {
            $removed = rmdir($this->realPath);
        } else {
            $removed = unlink($this->realPath);
        }

        return $removed;
    }
public function delete() : bool
    {
        $removed = null;

        if ($this->isDirectory()) {
            $removed = rmdir($this->realPath);
        } else {
            $removed = unlink($this->realPath);
        }

        return $removed;
    }
public function delete ( ) : bool { $ removed = null ; if ( $ this -> isDirectory ( ) ) { $ removed = rmdir ( $ this -> realPath ) ; } else { $ removed = unlink ( $ this -> realPath ) ; } return $ removed ; }
Remove a file from the disk.

@return bool
Remove a file from the disk .