private function delete($filename, $isDir = false)
    {
        if ($this->isSFTP()) {
            $deleted = @$this->ftp->delete($filename, $isDir);
        } else {
            $deleted = @$this->ftpDelete($filename);
        }
        if (!$deleted) {
            $this->fail("couldn't delete {$filename}");
        }
        $this->debug("Deleted: {$filename}");
    }
private function delete($filename, $isDir = false)
    {
        if ($this->isSFTP()) {
            $deleted = @$this->ftp->delete($filename, $isDir);
        } else {
            $deleted = @$this->ftpDelete($filename);
        }
        if (!$deleted) {
            $this->fail("couldn't delete {$filename}");
        }
        $this->debug("Deleted: {$filename}");
    }
private function delete ( $ filename , $ isDir = false ) { if ( $ this -> isSFTP ( ) ) { $ deleted = @ $ this -> ftp -> delete ( $ filename , $ isDir ) ; } else { $ deleted = @ $ this -> ftpDelete ( $ filename ) ; } if ( ! $ deleted ) { $ this -> fail ( "couldn't delete {$filename}" ) ; } $ this -> debug ( "Deleted: {$filename}" ) ; }
Delete file on server

@param $filename
Delete file on server