if the interface gets delete from the config, the wg device gets deleted from the OS and all its routes
This is exactly the reason why "set protocols static ..." commands use zebra instead of pushing routes directly to the kernel with iproute2. Zebra takes care of interfaces going up and down and reinstalls the routes when needed.