---- Windows ----
Important:
1. Close any windows explorer windows showing %programfiles%\qualys\qualysagent, %programfiles(x86)%\qualys\qualysagent or %programdata%\qualys\qualysagent.
2. Close any command prompts that are open to any of the above directories.
3. Do not run uninstall.exe by double clicking it in Explorer, this will not work.
Steps:
1. Open elevated command prompt(run as administrator).
2. Provide the Uninstall=True command line option to a neutral directory(not containing Qualys files) like this:
"%programfiles%\qualys\qualysagent\uninstall.exe" Uninstall=True
(The " " around the file path are required because the environment variable expands to contain spaces.)
3. To also delete agent registry entries, append 'Force=True' to the end of your command.
---- Linux/Unix Agent (RPM) ----
Use this command:
"sudo rpm -e qualys-cloud-agent"
---- Linux Agent (Debian) ----
Use this command:
"sudo dpkg --purge qualys-cloud-agent"
---- MacOS Agent ----
Use this command:
"sudo /Applications/QualysCloudAgent.app/Contents/MacOS/qagent_uninstall.sh"
Note: On MacOS High Sierra (10.13), launchd takes some time to remove the com.qualys.cloud-agent process, although the agent is already uninstalled.