Since there is very little information on how to uninstall XTREAM UI from an SSH server I have posted this solution, although I have tried and when reinstalling XTREAM UI again some data from the previous configuration is maintained
If any colleague could help us on the subject, it would be great since sometimes it is important to completely clean the system before installing XTREAM UI, especially if we are on an SSH server that we cannot format
**** UNINSTALL XTREAM UI ****
pkill -u xtreamcodes 2>/dev/null
kill $(ps aux | grep '[p]hp' | awk '{print $2}') 2>/dev/null
kill $(ps aux | grep '[n]ginx' | awk '{print $2}') 2>/dev/null
rm /var/lib/dpkg/lock-frontend /var/cache/apt/archives/lock /var/lib/dpkg/lock 2>/dev/null
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb 2>/dev/null
umount -f /home/xtreamcodes/iptv_xtream_codes/streams 2>/dev/null
umount -f /home/xtreamcodes/iptv_xtream_codes/tmp 2>/dev/null
rm -rf /home/xtreamcodes 2>/dev/null
sed -i '/xtreamcodes/d' /etc/fstab
sed -i '/xtreamcodes/d' /etc/crontab
sed -i '/xtreamcodes/d' /etc/sudoers
deluser xtreamcodes 2>/dev/null
groupdel xtreamcodes 2>/dev/null
/etc/init.d/mysql stop
apt purge mysql-* -y
rm -rf /etc/mysql /var/lib/mysql /var/log/mysql 2>/dev/null
apt autoremove -y
apt autoclean -y
If any colleague could help us on the subject, it would be great since sometimes it is important to completely clean the system before installing XTREAM UI, especially if we are on an SSH server that we cannot format
**** UNINSTALL XTREAM UI ****
pkill -u xtreamcodes 2>/dev/null
kill $(ps aux | grep '[p]hp' | awk '{print $2}') 2>/dev/null
kill $(ps aux | grep '[n]ginx' | awk '{print $2}') 2>/dev/null
rm /var/lib/dpkg/lock-frontend /var/cache/apt/archives/lock /var/lib/dpkg/lock 2>/dev/null
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb 2>/dev/null
umount -f /home/xtreamcodes/iptv_xtream_codes/streams 2>/dev/null
umount -f /home/xtreamcodes/iptv_xtream_codes/tmp 2>/dev/null
rm -rf /home/xtreamcodes 2>/dev/null
sed -i '/xtreamcodes/d' /etc/fstab
sed -i '/xtreamcodes/d' /etc/crontab
sed -i '/xtreamcodes/d' /etc/sudoers
deluser xtreamcodes 2>/dev/null
groupdel xtreamcodes 2>/dev/null
/etc/init.d/mysql stop
apt purge mysql-* -y
rm -rf /etc/mysql /var/lib/mysql /var/log/mysql 2>/dev/null
apt autoremove -y
apt autoclean -y