docs: public static void deleteQueue(DbConn cnx, int id)
      {
          int countRunning = cnx.runSelectSingle("ji_select_count_by_queue", Integer.class, id);
          if (countRunning > 0)
          {
              cnx.setRollbackOnly();
              throw new JqmAdminApiUserException(
                      "cannot delete a queue with running instances. Disable it, wait for the end of all running instances, then retry.");
          }
  
          cnx.runUpdate("dp_delete_for_queue", id);
          QueryResult qr = cnx.runUpdate("q_delete_by_id", id);
          if (qr.nbUpdated != 1)
          {
              cnx.setRollbackOnly();
              throw new JqmAdminApiUserException("no item with ID " + id);
          }
      }