network_remove
Remove a Docker network by ID or name. Fails if containers are attached, and 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.
Returns: bool: True after removal
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |