---
title: "POST /networks/{id}/disconnect"
method: POST
path: "/networks/{id}/disconnect"
---

# POST /networks/{id}/disconnect

`POST /networks/{id}/disconnect`

Disconnect a container from a network

## Path parameters

- `id` string, required

## Request body

- NetworkDisconnectRequest — NetworkDisconnectRequest represents the data to be used to disconnect a container from a network.
  - `Container` string, required — The ID or name of the container to disconnect from the network.
  - `Force` boolean — Force the container to disconnect from the network.

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Changes

- **2026-02-14** `31f80d10d31a` — 1 breaking, 6 info
  - removed the success response with the status `200`
  - api tag `Network` removed
  - the `Force` request property default value `false` was removed
  - removed the non-success response with the status `403`
  - …3 more

[Change history](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/networks/:id/disconnect/post.md)

---

[API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) · [All operations](https://skmtc.dev/hexlet/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hexlet/docker-engine-api/revisions/7dbd508c79cf/schema)
