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

- NetworkDisconnect — Parameters of network disconnect
  - `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

- `400` — bad parameter
- `404` — An unexpected 404 error occurred.
- `500` — An unexpected server error occurred.

---

[API](https://skmtc.net/aliyun/apis/pouch-engine-api.md) · [All operations](https://skmtc.net/aliyun/apis/pouch-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aliyun/pouch-engine-api/versions/36d75b2825fc/schema)
