---
title: "Detach VM from VPC"
method: DELETE
path: "/api/v1/vms/{id}/vpc/{nic_id}"
tags: ["Networking"]
---

# Detach VM from VPC

`DELETE /api/v1/vms/{id}/vpc/{nic_id}`

Detach a VM's network interface from its VPC. Use the `nic_id` from `GET /api/v1/vms/{id}/networks` to identify the interface.

## Path parameters

- `id` string, uuid, required
- `nic_id` integer, required

## Headers

- `X-Project-ID` string, uuid, required

## Response `200`

VM detached from VPC

- SuccessResponse
  - `success` boolean
  - `message` string

## Other responses

- `400` — X-Project-ID header is required for this endpoint
- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
