Cancel provisioning transaction in pending state?

How can I cancel/terminate a provisioning transaction that appears on the pending tab of the admin console? It is stuck there because of a bug that has been resolved, and the role membership has been corrected, so even if it could work correctly, we don’t want to retry it, but that is the only option.

I’m willing to write code to kill it by ID, but it seems like there’s more to this than just the provisioning transaction itself.