public function delete()
 {
     global $neardBs;
     $this->stop();
     if ($this->getName() == BinFilezilla::SERVICE_NAME) {
         return Batch::uninstallFilezillaService();
     }
     $delete = dechex($this->callWin32Service('win32_delete_service', $this->getName(), true));
     $this->writeLog('Delete service ' . $this->getName() . ': ' . $delete . ' (status: ' . $this->status() . ')');
     if ($delete != self::WIN32_NO_ERROR && $delete != self::WIN32_ERROR_SERVICE_DOES_NOT_EXIST) {
         return false;
     } elseif ($this->isInstalled()) {
         $this->latestError = self::WIN32_NO_ERROR;
         return false;
     }
     return true;
 }