// DestroyRelation removes the relation between the specified endpoints. func DestroyRelation(state *state.State, args params.DestroyRelation) error { eps, err := state.InferEndpoints(args.Endpoints) if err != nil { return err } rel, err := state.EndpointsRelation(eps...) if err != nil { return err } return rel.Destroy() }