---
title: "ezgh compute instances detach-network-interface"
description: "Detach a network interface from a stopped instance."
---

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

# ezgh compute instances detach-network-interface

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh compute instances detach-network-interface <instance> <network-interface>
```

Detach a network interface (by ID, UUID or name) from a stopped instance. The primary interface can't be detached.

Part of [`ezgh compute instances`](/cli/reference/compute-instances).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/compute-instances-detach-network-interface/index.mdx
