---
title: Detach
url: https://docs.vultr.com/reference/vultr-cli/bare-metal/vpc2/detach
description: Removes a bare metal server from a VPC 2.0 network, disconnecting it from the private network environment.
publish_date: 2025-09-14T03:01:28.853831Z
last_updated: 2025-11-07T17:39:20.635114Z
---

The `vultr-cli bare-metal vpc2 detach` command removes a bare metal server from a VPC 2.0 network, disconnecting it from that private network environment.

## Usage

```console
$ vultr-cli bare-metal vpc2 detach <Bare Metal ID> [flags]
```

## Examples

```console
# Full example
$ vultr-cli bare-metal vpc2 detach <bareMetalID> --vpc-id="2126b7d9-5e2a-491e-8840-838aa6b5f294"
```

## Flags
| Shorthand | Long Version | Description |
|-----------|--------------|-------------|
| -v | --vpc-id | the ID of the VPC 2.0 network you wish to detach |