#! /bin/bash systemctl stop netclient systemctl disable netclient rm -rf /etc/systemd/system/netclient.service rm -rf /etc/netclient/config /usr/local/bin/k3s-uninstall.sh /usr/local/bin/k3s-agent-uninstall.sh apt remove -y wireguard wireguard-tools rm -rf /root/k3s-install/ ifconfig wg0-oracle down apt autoremove -y ifconfig systemctl stop systemd-resolved.service && systemctl disable systemd-resolved.service systemctl stop netfilter-persistent.service && systemctl disable netfilter-persistent.service rm /etc/resolv.conf cat > /etc/resolv.conf<