> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to delete a tunnel in Nebius Tunnels

When you delete a tunnel, its public service URLs stop working. Deleting a tunnel doesn't delete service accounts, groups, authorized keys, tunnel agent configuration files or virtual machines that you created for the agent.

## Prerequisites

<Tabs group="interfaces">
  <Tab title="Web console">
    Make sure you are in a [group](/iam/authorization/groups/index) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
  </Tab>

  <Tab title="CLI">
    1. [Install and configure](/cli/install) the Nebius AI Cloud CLI.

    2. Check that your project ID is saved in the Nebius AI Cloud CLI profile configuration:
       ```bash theme={null}
       cat ~/.nebius/config.yaml
       ```

    3. Make sure you are in a [group](/iam/authorization/groups/index) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
  </Tab>
</Tabs>

## Deleting a tunnel

<Tabs group="interfaces">
  <Tab title="Web console">
    1. In the [web console](https://console.nebius.com), go to <Icon icon="https://mintcdn.com/nebius-ai-cloud/rOlLZ_MFvrheaI-h/_assets/sidebar/networking.svg?fit=max&auto=format&n=rOlLZ_MFvrheaI-h&q=85&s=7a4fe6d935f68131371d7b49a9bd595f" width="16" height="16" data-path="_assets/sidebar/networking.svg" /> **Networking** → **Tunnels**.

    2. Click <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/button-vellipsis.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e80b8e57c43bfd117679262e6a1334ad" width="12" height="24" data-path="_assets/button-vellipsis.svg" /> next to the tunnel that you want to delete and click **Delete**.

    3. Confirm the deletion.
  </Tab>

  <Tab title="CLI">
    1. Get the list of tunnels:

       ```bash theme={null}
       nebius tunnel list
       ```

       In the output, find the tunnel by its title and copy its ID from the `metadata.id` field. The ID has the `applicationtunnel-...` format.

    2. Delete the tunnel:

       ```bash theme={null}
       nebius tunnel delete --id <tunnel_ID>
       ```
  </Tab>
</Tabs>

If you created a dedicated service account and a group for the tunnel agent, delete them separately when you no longer need them.
