Kaspersky Scan Engine

Manual uninstallation (Windows)

This section describes how to manually uninstall Kaspersky Scan Engine.

To manually uninstall Kaspersky Scan Engine:

  1. Make sure that you have administrator privileges.
  2. Stop Kaspersky Scan Engine, run the following command:

    sc stop "Kaspersky ScanEngine"

  3. If you use Kaspersky Scan Engine UI, run the following command:

    sc stop "Kaspersky ScanEngine UI"

  4. If you added Kaspersky Scan Engine to the list of Windows services, delete it by running the following command:

    sc delete "Kaspersky ScanEngine"

  5. If you used Kaspersky Scan Engine GUI and added it to the list of Windows services, delete it by running the following command:

    sc delete "Kaspersky ScanEngine UI"

  6. If you use Kaspersky Scan Engine GUI, open the PostgreSQL database and execute the following query:

    DROP DATABASE kavebase;

    To remove the scanengine database user, run the following command:  

    DROP ROLE scanengine;

  7. Remove the %service_dir% directory. You can do this either by using Windows Explorer, or by running the following command:

    del /F %service_dir%

  8. Remove the directory that contains temporary files used by Kaspersky Scan Engine. You can do this either by using Windows Explorer, or by running the following command:

    del /F %temp_dir%

    Here %temp_dir% is the temporary directory.