CDNShark Documentation

Tunnel

← Back to Documentation

Remove a Tunnel or Uninstall the Connector

Removing a tunnel is two separate steps, and it is easy to do only the first. Uninstalling the software from your machine does not release the tunnel — it keeps its address and continues to count against your plan until you delete it in the dashboard.

1. Uninstall the connector

Linux and macOS:

curl -fsSL https://cdnshark.com/install/tunnel.sh | sudo bash -s -- --uninstall

Windows — PowerShell as Administrator:

Unregister-ScheduledTask -TaskName 'CDNShark Tunnel' -Confirm:$false
Get-Process cdnshark-tunnel -ErrorAction SilentlyContinue | Stop-Process -Force
Remove-Item "$env:ProgramFiles\CDNShark" -Recurse -Force
Remove-Item "$env:ProgramData\CDNShark"  -Recurse -Force

This deletes the machine's private key, so it can never re-attach with the same identity. To reconnect that machine later you install again with a fresh token.

2. Delete the tunnel

In the dashboard, open Private Tunnel and delete it. This revokes the credential and removes the connection from our gateway.

You cannot delete a tunnel while a domain or pull zone still uses it as an origin — point those elsewhere first, so your sites do not break.