Canceling all builds in a given state You can cancel all builds in a given state (for example, new or pending), ignoring the builds in other states. Procedure To cancel all in a given state, run: $ oc cancel-build bc/<buildconfig_name>