---
title: "Disconnect a container from a network"
method: POST
path: "/networks/{id}/disconnect"
tags: ["Network"]
---

# Disconnect a container from a network

`POST /networks/{id}/disconnect`

## Path parameters

- `id` string, required

## Request body

- object
  - `Container` string — The ID or name of the container to disconnect from the network.
  - `Force` boolean — Force the container to disconnect from the network.

## Response `200`

No error

## Other responses

- `403` — Operation not supported for swarm scoped networks
- `404` — Network or container not found
- `500` — Server error

---

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