Retrieve Batches from code

There seems to be little to no documentation for Hangfire Pro batches.
We’re using batches for pooling various jobs.
Since batches with failed jobs don’t finish we sometimes want to cancel those batches and clean our queue.
There’s no multi-select checboxes on the started batches dashboard page so we should click each batch and then cancel it. This can be very time consuming and tedious.

Is there a code method to retrieve a list of started batches so I can cancel them from code?

Thank you.