removeNetwork abstract method

Future<bool> removeNetwork(
  1. String id
)

Removes the network id.

Returns false, rather than throwing, when Docker refuses because a container is still attached — that is an expected outcome for a caller like rig prune walking every network it owns, not a failure of the remove call itself. Any other error still throws EngineError.

Implementation

Future<bool> removeNetwork(String id);