Regarding one IDM upgradation

Service Broker not enabled for this DB

Team, we are in a progress of upgrading one IDM from 7.1 to 7.1.3 in test environment which is the replica of production environment.

still in test env job queues are running and trying to connect production DB, and AD. as there is no test env for AD hence the one IDM test and prod both are connected with prod AD.

hence to avoid conflicts wanted to clear all the jobqueue. how to delete or clear? kindly suggest.