network_remove
Remove a custom Docker network by ID or name. Disconnect all containers first; built-in networks cannot be removed.
Instructions
Remove a single custom network by id or name.
Fails if any container is still attached (disconnect with network_disconnect or stop
the containers first). Built-in networks (bridge, host, none) can never be removed
and return an error regardless of attachment state. For bulk cleanup of every unused
custom network at once use network_prune instead.
args: id_or_name - The network id or name returns: bool - True after removal
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |