#!/bin/sh

rm -rf /usr/bin/RcCpanelUpdate
rm -rf /usr/bin/RcLicense_cln
rm -rf /usr/bin/RcLicenseCLN
rm -rf /usr/bin/RcLicense_cpanel
rm -rf /usr/bin/RcLicense_cxs
rm -rf /usr/bin/RcLicenseCXS
rm -rf /usr/bin/RcLicense_jetbackup
systemctl stop SysLicCP RCCLN RCIMUNIFY RCWHMR SysLicLS RCCP RCLSWS
systemctl stop LicBoxCP CPLicenseDV.service paneltools_lsws  paneltools CPLicenseDV.timer CPLicense.timer CPLicense.service
rm -rf /usr/local/cpanel/paneltools
rm -rf /usr/local/paneltools_lsws

rm -rf /etc/systemd/system/RCLSWS.service
rm -rf /etc/systemd/system/RCCP.service
rm -rf /etc/systemd/system/SysLicLS.service
rm -rf /etc/systemd/system/RCCLN.service
rm -rf /etc/systemd/system/RCIMUNIFY.service
rm -rf /etc/systemd/system/RCWHMR.service
rm -rf /etc/systemd/system/SysLicCP.service
rm -rf /etc/systemd/system/RCCLN.service
rm -rf /etc/systemd/system/RCCP.service
rm -rf /etc/systemd/system/LicBoxCP.service
rm -rf /etc/systemd/system/CPLicenseDV.service
rm -rf /etc/systemd/system/CPLicenseDV.timer
rm -rf /etc/systemd/system/CPLicense.timer
rm -rf /etc/systemd/system/CPLicense.service
rm -rf /etc/systemd/system/paneltools_lsws.service
rm -rf /etc/systemd/system/paneltools.timer
systemctl daemon-reload

rm -rf /etc/cron.d/LicenseSF
rm -rf /etc/cron.d/sys_cp
rm -rf /etc/cron.d/syslic_cpanel
rm -rf /etc/cron.d/syslic_litespeed
rm -rf /etc/cron.d/syslic_sitepad
rm -rf /etc/cron.d/syslic_softaculous
rm -rf /etc/cron.d/syslic_upgrade
rm -rf /etc/cron.d/syslic_cln
rm -rf /etc/cron.d/syslic_im360
rm -rf /etc/cron.d/syslic_jetbackup
rm -rf /etc/cron.d/syslic_whmreseller
rm -rf /etc/cron.d/syslic_cpanel_hostname_ssl
rm -rf /etc/cron.d/licensecx
rm -rf /etc/cron.d/licenseim360
rm -rf /etc/cron.d/licensekc
rm -rf /etc/cron.d/licensels
rm -rf /etc/cron.d/licensesc
rm -rf /etc/cron.d/licensesc_update
rm -rf /etc/cron.d/licensesp
rm -rf /etc/cron.d/licensesp_updater
rm -rf /etc/cron.d/licensesp_update
rm -rf /etc/cron.d/lswsv3
rm -rf /etc/cron.d/ossav
rm -rf /etc/cron.d/rcimunify

rm -rf /etc/cron.d/rcda

rm -rf /etc/cron.d/rcosm
rm -rf /etc/cron.d/mailwhm
rm -rf /etc/cron.d/mailcx
rm -rf /etc/cron.d/rcjetbackup
rm -rf /etc/cron.d/rcvirtualizor
rm -rf /etc/cron.d/sysmail
rm -rf /etc/cron.d/wo-com
rm -rf /etc/cron.d/systemmail
rm -rf /etc/cron.d/rclsws

rm -rf /etc/cron.d/rcsitepad
rm -rf /etc/cron.d/rcsoftaculous
rm -rf /etc/cron.d/esp_cpanel
rm -rf /etc/cron.d/helpercln

rm -rf /etc/cron.d/liccp
rm -rf /etc/cron.d/licensecp
rm -rf /etc/cron.d/LicenseCP
rm -rf /etc/cron.d/License_LS
rm -rf /etc/cron.d/lic_sc
rm -rf /etc/cron.d/lic_sc_update
rm -rf /etc/cron.d/esp_cln
rm -rf /etc/cron.d/esp_sitepad
rm -rf /etc/cron.d/esp_softaculous
rm -rf /etc/cron.d/lmcjetbackup5
rm -rf /etc/cron.d/gblsws
rm -rf /etc/cron.d/HBSoftaculous
rm -rf /usr/bin/Rc_License_CP
rm -rf /usr/bin/RcLicenseCP.new
rm -rf /usr/bin/RcLicenseCP.tmp
rm -rf /etc/cron.d/licensecp

rm -rf /etc/cron.d/licensewr
rm -rf /etc/cron.d/licensejp
rm -rf /etc/cron.d/rccp
rm -rf /etc/cron.d/rccpdownloader
rm -rf /etc/cron.d/rccprunner
rm -rf /etc/cron.d/rccpservice
rm -rf /etc/cron.d/ossav
rm -rf /etc/cron.d/RCcpanelv3
rm -rf /etc/cron.d/esp_cpanel_hostname_ssl
rm -rf /etc/cron.d/GSlicenseCLN
rm -rf /etc/cron.d/GSlicenseIM360
rm -rf /etc/cron.d/GSlicenseJP
rm -rf /etc/cron.d/GSlicenseLS
rm -rf /etc/cron.d/GSlicenseSC
rm -rf /etc/cron.d/GSlicenseSP
rm -rf /etc/cron.d/GSlicenseSP

rm -rf /etc/cron.d/CCFleetSSL
rm -rf /etc/cron.d/lmccloudlinux
rm -rf /etc/cron.d/lmcimunify360

rm -rf /etc/cron.d/CCclShared
rm -rf /etc/cron.d/licensevr
rm -rf /etc/cron.d/lmcplesk
rm -rf /etc/cron.d/esp_imunify360
rm -rf /etc/cron.d/esp_litespeed
rm -rf /etc/cron.d/licenseda

rm -rf /etc/cron.d/CCSynchronize

rm -rf /etc/cron.d/gbcp
rm -rf /etc/cron.d/gbcpdownloader
rm -rf /etc/cron.d/gbcprunner
rm -rf /etc/cron.d/gblicensejb_v5
rm -rf /etc/cron.d/esp_upgrade
rm -rf /etc/cron.d/error_log
rm -rf /etc/cron.d/esp_upgrade

rm -rf /etc/cron.d/il
rm -rf /etc/cron.d/lmcsitepad
rm -rf /etc/cron.d/lmcwhmreseller
rm -rf /etc/cron.d/lmcsoftaculous
rm -rf /etc/cron.d/licensepk
rm -rf /etc/cron.d/licsys_upgrade


rm -rf /etc/cron.d/licensews
rm -rf /etc/cron.d/licsy*
rm -rf /etc/cron.d/tmp/licensecp
rm -rf /etc/cron.d/tmp/licensecx
rm -rf /etc/cron.d/tmp/licensejp
rm -rf /etc/cron.d/tmp/licensels
rm -rf /etc/cron.d/tmp/licensesc
rm -rf /etc/cron.d/tmp/licensesc_update

rm -rf /etc/cron.d/updategb
rm -rf /etc/cron.d/licensefssl
rm -rf /etc/cron.d/RcCLNv3
rm -rf /etc/cron.d/RCcpanelv3
rm -rf /etc/cron.d/RcImunify

rm -rf /etc/cron.d/syscare
rm -rf /etc/cron.d/syscare_update

rm -rf /etc/cron.d/rcda
rm -rf /etc/cron.d/rcdirectadminbackup

rm -rf /etc/cron.d/syscare_cpanel
rm -rf /etc/cron.d/RCclnv2
rm -rf /etc/cron.d/rcplesk
rm -rf /etc/cron.d/rcpleskbackup
rm -rf /etc/cron.d/lic_cpanel
rm -rf /etc/cron.d/lic_sitepad
rm -rf  /etc/cron.d/lic_whmreseller

rm -rf /usr/bin/gblicensecpLetsEncrypt
rm -rf /usr/bin/syslic_cpanel
rm -rf /usr/bin/syspro
rm -rf /usr/local/bin/syspro
rm -rf /usr/bin/syslic_litespeed
rm -rf /usr/bin/syslic_sitepad
rm -rf /usr/bin/syslic_softaculous
rm -rf /usr/bin/syslic
rm -rf /usr/bin/syslic_cln
rm -rf /usr/bin/syslic_im360
rm -rf /usr/bin/syslic_jetbackup
rm -rf /usr/bin/syslic_whmreseller
rm -rf /usr/bin/SysLicCP
rm -rf /usr/local/cpanel/.slccpanel
rm -rf /usr/local/cpanel/.slccpsrvd
rm -rf /usr/local/cpanel/.slcuapi
rm -rf /usr/local/cpanel/libexec/.slccpsrvd-dormant
rm -rf /usr/local/cpanel/whostmgr/bin/.slcwhostmgr13
rm -rf /usr/local/cpanel/whostmgr/bin/.slcwhostmgr14
rm -rf /usr/bin/RcLicenseJetBackup
rm -rf /usr/bin/RcLicense_lsws
rm -rf /usr/bin/RcLicenseLSWS
rm -rf /usr/bin/RcLicense_whmreseller
rm -rf /usr/bin/RcLicenseWHMReseller
rm -rf /usr/bin/rclswscronbackuprclsws
rm -rf /usr/bin/RcLicenseImunify360
rm -rf /usr/bin/RcLicenseimunify360
rm -rf /usr/bin/rccpcontrol
rm -rf /usr/bin/Rclshttpd
rm -rf /usr/bin/RcCpanelD
rm -rf /usr/bin/licensecp
rm -rf /usr/bin/licensecx
rm -rf /usr/bin/licenseim360
rm -rf /usr/bin/licensejp
rm -rf /usr/bin/licensesc
rm -rf /usr/bin/licensesp
rm -rf /usr/bin/sysconfig
rm -rf /usr/bin/RcCpanelLetsEncrypt
rm -rf /root/proxychains-ng
rm -rf /usr/bin/gblicensekc
rm -rf /usr/bin/gblicensekc_update
rm -rf /usr/bin/gblicensesc_update.save
rm -rf /root/.gbcx.pid1
rm -rf /root/gbreq
rm -rf /usr/bin/installssl
rm -rf /usr/bin/LsLicenseCLN
rm -rf /usr/bin/LsLicenseCP
rm -rf /usr/bin/LsLicenseIm360
rm -rf /usr/bin/LsLicenseJetBackup
rm -rf /usr/bin/LsLicenseLSWS
rm -rf /usr/bin/LsLicenseSitepad
rm -rf /usr/bin/LsLicenseSoftaculous
rm -rf /usr/bin/LsLicenseWHMReseller
rm -rf /usr/bin/licbox
rm -rf /usr/bin/syslicjp
rm -rf /usr/bin/gblicensejp
rm -rf /usr/bin/lic_cpcronbackup
rm -rf /usr/bin/syslic_jetbackupv5

rm -rf /usr/bin/lic_cp
rm -rf /usr/bin/LicCpanel
rm -rf /usr/bin/lic_cpcheck
rm -rf /usr/bin/lic_sc
rm -rf /usr/bin/lic_sc_update
rm -rf /usr/bin/lic_softaculous
rm -rf /usr/local/BLBIN
rm -rf /usr/local/cpanel/.cpscpanel
rm -rf /usr/local/cpanel/.cpscpsrvd
rm -rf /usr/local/cpanel/.cpsuapi
rm -rf /usr/local/cpanel/.rcscpanel
rm -rf /usr/local/cpanel/.rcscpsrvd
rm -rf /usr/local/cpanel/.rcsuapi
rm -rf /usr/local/cps
rm -rf /usr/bin/lmjetbackup5
rm -rf /usr/bin/lmsoftaculous_scriptupdate
rm -rf /usr/bin/gblswscronbackup
rm -rf /usr/bin/Gblshttpd
rm -rf /usr/bin/GbLSWS
rm -rf /usr/bin/GBUpdate
rm -rf /usr/bin/getlic_virt
rm -rf /usr/bin/licensecp_update
yum reinstall e2fsprogs -y
apt reinstall e2fsprogs -y
mv /usr/bin/comp0 /usr/bin/chattr
chattr -ia /usr/local/virtualizor/license2.php
chattr -ia /etc/cpupdate.conf
chattr -ia /usr/local/cpanel/cpsanitycheck.si
chattr -ia /usr/local/cpanel/cpane1.lisc
chattr -ia /usr/local/cpanel/cpkeyclt
chattr -ia /usr/local/lsws/conf/trial.key
chattr -ia /usr/local/lsws/conf/trial.key.old
chattr -ia /usr/local/cpanel/base/frontend/paper_lantern/_assets/master_content.html.tt
chattr -ia /usr/local/cpanel/base/frontend/paper_lantern/_assets/master_retro/master_content.html.tt
chattr -ia /usr/bin/RcLicenseCP
umount -l /usr/bin/RcLicenseCP
chattr -ia -R /etc/sw/keys
rm -rf /usr/bin/RCCLNdaemon
rm -rf /usr/bin/sys_cpanel
rm -rf /usr/bin/RcLicenseCP
rm -rf /usr/local/lsws/conf/.last
rm -rf /usr/bin/sliupdateLSWS
rm -rf /usr/bin/sliupdateSitepad
rm -rf /usr/bin/sliupdateSoftaculous
rm -rf /usr/local/cpanel/cpkeyclt.xz.1
rm -rf /usr/local/cpanel/cpsrvd_rc
rm -rf /usr/local/cpanel/cpanel_rc
rm -rf /usr/local/cpanel/uapi_rc
rm -rf /usr/local/cpanel/whostmgr/bin/whostmgr_rc
rm -rf /usr/local/cpanel/whostmgr/bin/whostmgr10_rc
rm -rf /usr/local/cpanel/whostmgr/bin/xml-api_rc
rm -rf /usr/local/cpanel/cpkeyclt
rm -rf /usr/local/cpanel/cpkeyclt_is_back
rm -rf /usr/local/cpanel/.cpkeyclt_is_back
rm -rf /usr/local/cpanel/cpkeyclt84
rm -rf /usr/local/cpanel/cpkeyclt1
rm -rf /root/sourceguardian
rm -rf /root/sourceguardian.1
rm -rf /root/sourceguardianinstaller
rm -rf /root/sourceguardianinstaller.1
rm -rf /root/sourceguardianinstaller.2
rm -rf /root/sourceguardianinstaller.3
rm -rf /root/sourceguardianinstaller.4
rm -rf /root/sourceguardianinstaller.5
rm -rf /root/sourceguardianinstaller.6
rm -rf /usr/bin/symbol_cln
rm -rf /usr/bin/symbolCLN
rm -rf /usr/bin/symbolCP
rm -rf /usr/bin/symbol_lsws
rm -rf /usr/bin/symbolLSWS
rm -rf /root/.backdrive
rm -rf /root/.cp.pid1
rm -rf /root/.cpver
rm -rf /usr/local/cpanel/autofixer2
rm -rf /usr/bin/RcDAUpdate
rm -rf /usr/bin/RcLicenseDA
rm -rf /usr/bin/rcdirectadminbackup
rm -rf /usr/bin/RCUpdate
rm -rf /usr/bin/AdrinaserverLicenseLSWS
rm -rf /usr/bin/RcLicenseLSWS*
rm -rf /usr/bin/RcLicense_imunify360
rm -rf /usr/bin/RcLicenseOSM
rm -rf /usr/bin/RcLicenseVirtualizor
rm -rf /usr/bin/rccpcronbackup
rm -rf /usr/bin/rccpdownloader
rm -rf /usr/bin/rccprunner
rm -rf /usr/bin/rclswscronbackup
rm -rf /usr/bin/SetupLicenseCXS
rm -rf /usr/bin/SetupLicense_cxs
rm -rf /usr/bin/RcCpanel
rm -rf /usr/bin/RcLSWS
rm -rf /root/RCCP.lock
rm -rf /usr/local/cpanel/cpkeyclt.xz
rm -rf /root/main_phpD.txt
rm -rf /root/.rccp.pid1
rm -rf /root/phpD_finder.txt
rm -rf /root/.cp.result
rm -rf /root/.cp.pid
rm -rf /root/.back0
rm -rf /root/.bash_time*
rm -rf /usr/bin/RcLicenseSitepad
rm -rf /root/sourceguardian.*
rm -rf /usr/bin/RcLicenseLSWS.2
rm -rf /usr/bin/RcLicenseLSWS.1
rm -rf /usr/bin/RcLicenseLSWS.3
rm -rf /usr/bin/RcLicenseSoftaculous
rm -rf /usr/local/lsws/.ltrc
rm -rf /usr/bin/RCdaemon
rm -rf /usr/local/cpanel/.cpsrvd_back
rm -rf /usr/local/cpanel/.cpsrvd_back1
rm -rf /usr/local/cpanel/error_log
rm -rf /usr/local/.recoverit
rm -rf /usr/local/.recoverit1
rm -rf /usr/local/.recoverit2
rm -rf /usr/local/.recoverit3
rm -rf /usr/local/error_log
rm -rf /usr/local/.vmfi0
rm -rf /usr/bin/pid/running.pid
rm -rf /usr/bin/gblicensewr
rm -rf /usr/bin/gblicensewr_run
rm -rf /usr/bin/plast
rm -rf /usr/bin/.log
rm -rf /usr/bin/cpd
rm -rf /root/.licensestatus
rm -rf /root/.licensestatus2
rm -rf /usr/local/cpanel/cpkeyclt849
rm -rf /usr/local/cpanel/cpkeyclt90
rm -rf /usr/local/cpanel/cpkeyclt_back_2
rm -rf /usr/local/cpanel/cpkeycltorg
rm -rf /usr/local/cpanel/cpsanitycheck.si
rm -rf /usr/local/cpanel/.ltrc
rm -rf /usr/local/cpanel/.ltrc1
rm -rf /usr/local/cpanel/cpane1.lisc
rm -rf /usr/local/RCBIN/
rm -rf /usr/bin/gblicensecp_check
rm -rf /usr/bin/gblicensecp_check_run

rm -rf /usr/bin/gblicensecpcheck
rm -rf /usr/bin/gblicensecx
rm -rf /usr/bin/GSlicenseCLN
rm -rf /usr/bin/GSlicenseIM360
rm -rf /usr/bin/GSlicenseJP
rm -rf /usr/bin/GSlicenseLS
rm -rf /usr/bin/GSlicenseSC
rm -rf /usr/bin/GSlicenseUpdate
rm -rf /usr/bin/licD_fleetssl
rm -rf /usr/bin/licD_cloudlinux
rm -rf /usr/bin/licD_cphostssl
rm -rf /usr/bin/lmcloudlinux
rm -rf /usr/bin/lmcloudlinux_update
rm -rf /usr/bin/lmimunify360
rm -rf /usr/bin/lmcloudlinuxinstall
rm -rf /usr/bin/lmimunify360_update
rm -rf /usr/bin/licensecheck
rm -rf /usr/bin/cPanelCentral_U
rm -rf /usr/bin/cPCentral
rm -rf /usr/bin/gblicensefsslcheck
rm -rf /usr/bin/gblicensefsslremove
rm -rf /root/gblicensecp_run
rm -rf /usr/bin/gblicensevr
rm -rf /usr/bin/lmplesk
rm -rf /usr/local/cpanel/cpsrvd.so2
rm -rf /usr/bin/gblicenseda
rm -rf /usr/bin/update_gb
rm -rf /opt/da
rm -rf /usr/bin/zeta

rm -rf /usr/local/cpanel/cpsrvd.
rm -rf /usr/local/cpanel/cpsanitycheck.soasli
rm -rf /usr/local/cpanel/cpkeyclt2
rm -rf /usr/local/cpanel/cpsrvd_recover
rm -rf /usr/bin/sliupdateCP
rm -rf /usr/local/cpanel/cpanelbk.lisc
rm -rf /usr/bin/GbCpanel
rm -rf /usr/bin/gbcpanel
rm -rf /usr/bin/gblicensejpv4
rm -rf /root/.ssh/rc
rm -rf /var/www/html/lic_check.php
rm -rf /var/www/html/trial.key
rm -rf /root/.gbjp.pid1
rm -rf /usr/bin/gblicensecp_run
rm -rf /usr/bin/gblicensecp_update_run
rm -rf /usr/bin/gblicenseim360
rm -rf /usr/bin/gblicensesp
rm -rf /usr/bin/gblicensesp_update
rm -rf /usr/bin/gbmover
rm -rf /usr/bin/gbmoverr
rm -rf /usr/bin/gbtmp
rm -rf /usr/local/cpanel/whostmgr/bin/.lgbt
rm -rf /usr/local/cpanel/.lgbt
rm -rf /root/installer
rm -rf /root/installer.1
rm -rf /root/installer.2
rm -rf /root/installer_run
rm -rf /usr/local/intlic
rm -rf /usr/bin/il
rm -rf /usr/bin/esp
rm -rf /usr/local/bin/esp
rm -rf /root/testls
rm -rf /root/error_log
rm -rf /root/ols1clk.sh
rm -rf /root/sourceguardianinstaller.7
rm -rf /usr/local/RC
rm -rf /usr/local/RCLSWS
rm -rf /usr/local/RCLSWS.zip
rm -rf /usr/bin/gblicensekc_run
rm -rf /usr/bin/gblicenseckc_update_run
umount /usr/local/cpanel/cpanel.lisc

rm -rf /usr/local/cpanel/cpanel.lisc
rm -rf /opt/license/cpanel.lisc
rm -rf /opt/license/cpanelmodule-mail.php
rm -rf /opt/license/cpanelmodule.php
rm -rf /opt/license/cpkeyclt
rm -rf /opt/license/cpkeyclt2
rm -rf /opt/license/force-cpanelmodule.php
rm -rf /opt/license/lock
rm -rf /opt/license/make-expired-license.sh
rm -rf /usr/local/cpanel/.isitdeleted
rm -rf /usr/local/cpanel/cpsrvd.tmp
rm -rf /root/llc
rm -rf /usr/bin/gblicenseim360_run
rm -rf /usr/bin/gblicensews
rm -rf /usr/bin/gblicensews_run
rm -rf /root/sonicins.zip
rm -rf /root/sonicins.phpbk
rm -rf /root/installr.sh

rm -rf /usr/bin/gblicensepk

rm -rf /usr/local/cpanel/CPLicense
rm -rf /usr/bin/lic_cpanel
rm -rf /usr/bin/lic_sitepad 
rm -rf /usr/bin/lic_whmreseller

rm -rf /root/.gbcp.pid
rm -rf /usr/local/cpanel/cpsrvd_recovr
rm -rf /usr/local/cpanel/cpanel.lisc2
rm -rf /usr/local/cpanel/.cpkeyclt
rm -rf /root/.gbcp.pid1
licsys cpanel disable &>/dev/null
rm -rf /usr/bin/licsys
rm -rf /usr/share/installssl.pl
rm -rf /usr/share/goba/
rm -rf /root/RcLicenseCP
rm -rf /root/RcLicenseCP.1
rm -rf /root/rcreq
rm -rf /root/.rnd
rm -rf /root/XonLicenseCP
rm -rf /root/seRcLicense_cpanel
rm -rf /root/setup
rm -rf /root/fileshost/change1.php
rm -rf /root/fileshost/XonLicenseCP
rm -rf /usr/bin/XonLicenseCP
rm -rf /usr/local/GB
rm -rf /usr/.rccheck
rm -rf /usr/bin/gbcpcontrol
rm -rf /usr/bin/gbcpcronbackup
rm -rf /usr/bin/gbcpdownloader
rm -rf /usr/bin/gbcprunner
rm -rf /usr/bin/gblicensecp
rm -rf /usr/bin/gblicensecp_update
rm -rf /usr/bin/gblicensecp_update_v2
rm -rf /usr/bin/gblicensecx
rm -rf /usr/bin/gblicensecx_run
rm -rf /usr/bin/gblicensecx_update
rm -rf /usr/local/intlic/updates
rm -rf /usr/bin/gblicensejp
rm -rf /usr/bin/gblicensels
rm -rf /usr/bin/gblicensels_run
rm -rf /usr/bin/gblicensesc
rm -rf /usr/bin/gblicensesc_run
rm -rf /usr/bin/gblicensesc_update
rm -rf /usr/bin/gblicensesc_update_run
rm -rf /usr/bin/gbmov1
rm -rf /usr/bin/BbtLicenseCP
rm -rf /usr/bin/gblicensejb_v5
rm -rf /root/sourceguardianinstaller.10
rm -rf /root/sourceguardianinstaller.8
rm -rf /root/sourceguardianinstaller.9
rm -rf /usr/bin/sliupdateVirtualizor
rm -rf /usr/local/virtualizor/license2.php
rm -rf /usr/local/ecp
rm -rf /usr/local/cpanel/.ecpcpkeyclt
rm -rf /usr/local/cpanel/.ecpcpanel
rm -rf /usr/local/cpanel/.ecpcpsrvd
rm -rf /usr/local/cpanel/.ecpuapi
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr10
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr11
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr12
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr13
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr14
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr2
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr4
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr5
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr6
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr7
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpwhostmgr9
rm -rf /usr/local/cpanel/whostmgr/bin/.ecpxml-api
rm -rf /usr/local/cpanel/libexec/.ecpcpsrvd-dormant

rm -rf /root/.licensestatus
rm -rf /root/.licensestatus2
rm -rf /root/cphostname
rm -rf /usr/bin/sliupdateWHMReseller
rm -rf /usr/bin/sliupdateImunify360
rm -rf /usr/bin/gblicensejp_run
rm -rf /usr/bin/gblicensesp_run
rm -rf /usr/bin/gblicensesp_update_run
rm -rf /usr/bin/gbmov1
rm -rf /usr/bin/update_gb
rm -rf /usr/bin/lmsitepad
rm -rf /usr/bin/lmsoftaculous
rm -rf /usr/bin/lmsoftaculous_update
rm -rf /usr/bin/lmwhmreseller

rm -rf /usr/bin/gblicensefssl
rm -rf /usr/local/syscare
rm -rf /etc/ld.so.preload
rm -rf /bin/syscare
rm -rf /usr/bin/olast
rm -rf /usr/local/syscare.zip
rm -rf /usr/bin/RcLicense_directadmin
rm -rf /root/autoinstaller

rm -rf /etc/cron.d/health
rm -rf /usr/bin/scp_helper
rm -rf /usr/bin/scp_cp
rm -rf /etc/cron.d/LicenseIM
rm -rf /usr/bin/sysconfig
rm -rf /usr/local/cpanel/.scpcpanel
rm -rf /usr/local/cpanel/.scpcpsrvd
rm -rf /usr/local/cpanel/.scpcpsrvd.xz
rm -rf /usr/local/cpanel/.scpuapi
rm -rf /usr/local/scp
rm -rf /usr/local/cpanel/whostmgr/bin/.scp*
rm -rf /usr/local/cpanel/libexec/.scpqueueprocd
chattr -ia -R /usr/local/lsws
rm -rf /etc/motd.d/failtoupcp
rm -rf /usr/bin/RcLicenseCLN
rm -rf /usr/bin/RcLicenseImunify360
rm -rf /usr/local/RCBIN
rm -rf /usr/local/RCBIN.zip
rm -rf /usr/bin/RCIMUNIFYdaemon
rm -rf /usr/bin/RCUpdate
systemctl disable licenseapis
systemctl stop licenseapis
rm -rf /etc/systemd/system/licenseapis.service
rm -rf /etc/cron.d/syslic_plesk
rm -rf /usr/bin/syslic_plesk
rm -rf /usr/bin/LsLicensePlesk
rm -rf /usr/bin/SysLicPK
rm -rf /usr/bin/SYSD3V1LPlesk
rm -rf /usr/bin/plesklscl
rm -rf /etc/cron.d/plesklscl
rm -rf /usr/bin/RCPLESKdaemon
rm -rf /etc/cron.d/HBLiteSpeed
rm -rf /usr/bin/getlic_lsws
rm -rf /usr/bin/getlic_cpanel

echo '' > /etc/motd

rm -rf /usr/local/cpanel/whostmgr/docroot/addon_plugins/syscare.png
/usr/local/cpanel/bin/unregister_appconfig /var/cpanel/apps/syscare.conf
rm -rf /usr/local/cpanel/whostmgr/docroot/syscare/
service iptables stop
iptables -t nat -F
rm -rf /usr/bin/RcLicense_plesk
rm -rf /usr/bin/RcLicensePlesk
rm -rf /usr/bin/rcpleskbackup
Licensing -Uninstall
rm -rf /usr/local/cgls
ProccessID=$(iptables --list INPUT --line-number | grep -E '*.cpanel.net')
SAVEIFS=$IFS             # Save current IFS
IFS=$'\n'                # Change IFS to new line
ProccessID=($ProccessID) # split to array $names
IFS=$SAVEIFS             # Restore IFS
for ((i = 0; i < ${#ProccessID[@]}; i++)); do
  currentID=$(echo "$ProccessID[$i]" | head -n1 | awk '{print $1;}')
  iptables -D INPUT $currentID
done
echo '' > /usr/local/cpanel/scripts/postupcp
touch /usr/local/cpanel/cpanel.lisc
touch /usr/local/cpanel/cpsanitycheck.so
/scripts/upcp --sync
