---
title: Detach
url: https://docs.vultr.com/reference/vultr-cli/vpc-2/nodes/detach
description: Removes compute instances from a VPC 2.0 network while preserving their other configurations
publish_date: 2025-09-14T03:09:42.532240Z
last_updated: 2025-11-07T17:53:12.206424Z
---

The `vultr-cli vpc2 nodes detach` command removes compute instances from a VPC 2.0 network, disconnecting them from the private network environment.

## Usage

```console
$ vultr-cli vpc2 nodes detach <VPC2 ID> [flags]
```

## Examples

```console
# Full example
$ vultr-cli vpc2 nodes detach 84fee086-6691-417a-b2db-e2a71061fa17 \
--nodes="35dbcffe-58bf-46fe-bd68-964d95488dd8,1f5d784a-1011-430c-a2e2-39ba045abe3c"
```

## Flags
| Shorthand | Long Version | Description |
|-----------|--------------|-------------|
| -n | --nodes | the instance IDs you wish to attach to the VPC2 network |