Hi,
The Procedure to remove ESM agent and CES and install CCS on the following :
Please Refer the following link it is the custom monitoring script used for installation purpose:
https://scripts.comodo.com/frontend/web/topic/monitoring-procedure-for-esm-to-itsm-migration
Please Refer the following link it is the Auto remediation script which is used by the above custom monitoring script
https://scripts.comodo.com/frontend/web/topic/to-uninstall-cesm-agent-ces-and-install-ccs
Let us know your feedback
Thanks