Skip to main content

Uninstall cnspec

Remove cnspec from a Debian-based Linux machine

  1. Log out the cnspec client from the back end:

    cnspec logout --force
  2. Uninstall the package:

    apt remove mondoo
    apt autoremove
  3. Remove the repository:

    rm /usr/share/keyrings/mondoo-archive-keyring.gpg
    rm /etc/apt/sources.list.d/mondoo.list

Remove cnspec from a Red Hat-based Linux machine

  1. Log out the cnspec client from the back end:

    cnspec logout --force
  2. Uninstall the package:

    dnf remove mondoo
  3. Remove the repository:

    rm /etc/yum.repos.d/mondoo.repo

Remove cnspec from a Windows machine

  1. Log out the cnspec client from the back end:

    cnspec logout --force
  2. Remove the MondooUpdater task:

    Unregister-ScheduledTask -TaskName MondooUpdater -Confirm:$false;
    $scheduleObject = New-Object -ComObject Schedule.Service; $scheduleObject.connect(); $rootFolder = $scheduleObject.GetFolder("\"); $rootFolder.DeleteFolder("Mondoo",$null)
  3. Uninstall the Mondoo MSI package:

    $app = Get-WmiObject -Class Win32_Product -Filter "Name = 'Mondoo'";$app.Uninstall();rm 'C:\Program Files\Mondoo\';rm 'C:\ProgramData\Mondoo\';

Remove cnspec from a macOS machine

  1. Log out the cnspec client from the back end:

    cnspec logout --force
  2. Remove cnspec using your preferred package manager, such as Homebrew or Nix.