openvpn usage: how to modify ip address and how to remove a tun interface?
Solution 1:
If you want to remove an ip address simply use del
instead of `add.
So ip addr del 10.0.0.2/24 dev tun2
to remove an IP. But since you want to remove the interface that doesn't really matter.
To remove an tun* interface simply use ip link del name or in your case ip link delete tun2
.