Kaspersky Scan Engine

Manual uninstallation (Linux)

This section describes how to manually uninstall Kaspersky Scan Engine.

To manually uninstall Kaspersky Scan Engine:

  1. Make sure you have root (administrator) privileges.
  2. Stop Kaspersky Scan Engine:
    • If you use Kaspersky Scan Engine in ICAP mode, run this command:

      /etc/init.d/kavicapd stop

    • If you use Kaspersky Scan Engine in HTTP mode, run this command:

      /etc/init.d/kavhttpd stop

    • If you use Kaspersky Scan Engine GUI, run this command:

      /etc/init.d/klScanEngineUI stop

  3. Remove the executable file and the configuration file:
    • If you use Kaspersky Scan Engine in ICAP mode, run this command:

      rm /etc/init.d/kavicapd /etc/kavicapd.xml

    • If you use Kaspersky Scan Engine in HTTP mode, run this command:

      rm /etc/init.d/kavhttpd /etc/kavhttpd.xml

    • If you use Kaspersky Scan Engine GUI, run this command:

      rm /etc/init.d/klScanEngineUI /etc/klScanEngineUI.xml

  4. 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;

  5. Remove the /opt/kaspersky/ScanEngine directory:

    rm –rf /opt/kaspersky/ScanEngine

  6. Remove the directory that contains temporary files used by Kaspersky Scan Engine:

    rm –rf %temp_dir%

    Here %temp_dir% is the temporary directory.