The QualysContainerSensor.tar.xz file (which you download for sensor installation from Qualys Cloud 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:
If the docker host is configured to communicate over TCP socket then provide the address on which docker daemon is configured to listen:
./uninstallsensor.sh DockerHost=<<IPv4 address or FQDN>:<Port#>> -s
./uninstallsensor.sh DockerHost=10.115.27.54:3128 -s
Follow the on-screen prompts to uninstall the sensor. Qualys recommends not to clear the persistent storage.