---
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.

---

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