pub fn reset(registry_path: &Path) -> Result<ResetResult>Expand description
Reset all node state: remove all data directories, log directories, and clear the registry.
This function:
- Loads the registry (with file lock)
- Iterates over all registered nodes
- Removes each node’s data directory
- Removes each node’s log directory (if set)
- Clears the registry (empties nodes, resets next_id to 1)
Does NOT check if nodes are running — callers must verify that first.