network_remove
Removes a custom Docker network by ID or name. Returns an error if any container is still attached or if attempting to remove a built-in network.
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 |