linux purge command code example
Example 1: centos stop apache
systemctl restart httpd.service
systemctl start httpd.service
systemctl stop httpd.service
Example 2: apt remove
sudo apt-get --purge autoremove packagename
systemctl restart httpd.service
systemctl start httpd.service
systemctl stop httpd.service
sudo apt-get --purge autoremove packagename