uninstall systemd service code example
Example 1: remove systemd service
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename]
rm /usr/lib/systemd/system/[servicename]
rm /usr/lib/systemd/system/[servicename]
systemctl daemon-reload
systemctl reset-failed
Example 2: remove from systemctl
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename]
rm /usr/lib/systemd/system/[servicename]
rm /usr/lib/systemd/system/[servicename]
systemctl daemon-reload
systemctl reset-failed