Thank you for your report. I think the problem here is that when you call "wg-quick up ..." it will create a new network interface that is picked up by the NetworkManager snap (and therefore netplan), but when you call "wg-quick down ..." it just tears down the interface, while NetworkManager does not recognize that and thus cannot clear the configuration.
Could you please show the output "nmcli con"? Does it show a list of wireguard connection profiles? If so, does it help to call "nmcli con delete <UUID>" to clear this profile from NetworkManager (and also netplan YAML in /etc/netplan/)? ** Changed in: netplan.io (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1966197 Title: Cleaning netplans after removing wireguard interface To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1966197/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs