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

# Detach floating IP from VM

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

Detach a floating IP from a VM. A reserved IP returns to your reserved pool and **continues to be billed** until you release it via `DELETE /api/v1/ips/{id}/reserve`. An auto-assigned IP is released back to the shared pool.
Use the `nic_id` from `GET /api/v1/vms/{id}/networks`. If you detach the VM's primary IPv4 while other IPv4s remain attached, the lowest-numbered remaining IPv4 becomes the new primary.

## Path parameters

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

## Headers

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

## Response `200`

IP detached

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

## Other responses

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

## Changes

- **2026-05-06** `9e13a6e23934` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rafftechnologies/apis/raff-api/changes/api/v1/vms/:id/ip/:nic_id/delete.md)

---

[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)
