code: public static void unregister(MBeanServer server, String object_name) throws Exception {
          Set<ObjectName> mbeans = server.queryNames(new ObjectName(object_name), null);
          if(mbeans != null)
              for (ObjectName name: mbeans)
                  server.unregisterMBean(name);
      }
docs: Unregisters object_name and everything under it
  @param object_name