Your TUN interface is still listed, the tunnel is not passing traffic, and the obvious fix looks like deleting the link. That is where small cleanups turn into outages. The interface can be persistent by design, owned by a service that will recreate it, or hiding in a namespace where the same name means something else. Its existence is not proof that it is orphaned.

Deleting a named interface is easy. Knowing what depends on it is the actual task.

Myth: the interface is leftover because the tunnel is down

A persistent TUN device exists independently of a connected session. That is the point of the persistent flag: the device stays so the next connection can reuse it. No traffic flows, and nothing is wrong.

The interface can also belong to a service that is between restarts, or to a client whose profile is idle. Check the owning process and configuration before you conclude it is abandoned. A process list and the configuration that starts it are stronger evidence than a missing tunnel.

Record the namespace along with the name. Another namespace can hold an interface with the same name, and the two are unrelated. Use the namespace flag when you need to inspect another one.

Myth: deleting the link cleans up everything

Deleting the link removes the addresses and routes attached to it. It does not remove policy rules, firewall rules, resolver settings or helper scripts that referenced it. Those can survive and point at a device that no longer exists.

If the service is still configured, it may recreate the interface on the next start or reconnect. You have then deleted a working resource and left the original lifecycle problem in place. Change the configuration, not just the runtime state.

A cleanup that ends with the interface back and the rules duplicated is worse than no cleanup.

Find the owner before you touch it

Start with ip link show and the TUN/TAP inspection tools to get the interface, its addresses and its routes. Check the client, service or network manager that could own it. Confirm whether the device is persistent and which mode it uses. Then decide whether anyone still depends on it.

For a confirmed unused persistent interface, ip tuntap documents mode-specific removal. Match the actual device name and mode, and do not run a broad cleanup against every tunnel on the host.

Keep recovery access and the routes for other clients intact while you work. Note the command you used so the next check can be repeated exactly.

Remove it through the owner, then check what remains

Stop or remove the supported connection configuration first, so the service does not recreate what you delete. Then remove the device. Afterward, inspect stale addresses, routes and resolver state under their own owners.

If the problem returns at reconnect, repair the lifecycle configuration instead of repeating the manual deletion. A cleanup record that names the orphan, why it was unused and which component should manage the replacement saves the next person from mistaking a legitimate persistent interface for a fault.

Lahatsoratra mifandraika