pub fn destroy(
out: &mut dyn Write,
endpoint: &Endpoint,
args: &DestroyArgs,
) -> Result<(), CliError>Expand description
Destroys a dataflow, or the whole cluster’s dataflows.
A named dataflow is stopped first and then cleaned: the protocol’s
ControlRequest::Destroy is cluster-wide by design (§24.1), so
“destroy this one” is expressed as the two requests that mean it rather
than by inventing a variant the wire does not have.
§Errors
As Client::request, plus CliError::UnexpectedReply.