Uninstalling Cloud Agent
Uninstalling Cloud Agent from the Cloud Agent UI or API
You can uninstall the Qualys Cloud Agent using the Cloud Agent UI or Cloud Agent API. When you uninstall an agent using UI or API, the Cloud Agent stops working but data and logs files associated with that Cloud Agent are not removed. Hence, you have to purge the data and log files associated with the Cloud Agent manually.
Uninstalling Cloud Agent from Host
The following are the steps to uninstall Cloud Agent from the GCP COS host itself.
- Log in to the GCP Container Optimized OS host.
- Run the following command to remove the Qualys Cloud Agent
kubectl delete -f lxa-gke-deploy.yml
- Remove Qualys Cloud Agent Config, Data, Log, and Root directories manually from GCP Container Optimized OS.
sudo rm -rf /var/lib/docker/volumes/lxag-data/_data
sudo rm -rf /var/lib/docker/volumes/lxag-config/_data
sudo rm -rf /var/lib/docker/volumes/lxag-log/_data
sudo rm -rf /var/lib/docker/volumes/lxag-root/_data