How to uninstall the CS Sensor (qcs-sensor)

The QualysContainerSensor.tar.xz file (which you download for sensor installation from Qualys Enterprise TruRisk™ Platform) has the script uninstallsensor.sh for uninstalling the sensor.

To uninstall a sensor:

If the Docker host is configured to communicate over docker.sock, use the following command:
$ sudo ./uninstallsensor.sh -s

-s is used for silent uninstallation, which does not remove the persistent storage.

If the Docker host is configured to communicate over TCP socket then provide the address on which the Docker daemon is configured to listen:
$ sudo ./uninstallsensor.sh DockerHost=<<IPv4 address or FQDN>:<Port#>> -s

For example,
./uninstallsensor.sh DockerHost=10.11.12.13:1234 -s

Follow the on-screen prompts to uninstall the sensor.

Qualys recommends not clearing the persistent storage.