code: public void removeClientNotificationListener(RESTRequest request, ObjectName name) {
          NotificationTargetInformation nti = toNotificationTargetInformation(request, name.getCanonicalName());
  
          // Remove locally
          ClientNotificationListener listener = listeners.remove(nti);
  
          // Check whether the producer of the notification is local or remote.
          if (nti.getRoutingInformation() == null) {
              // Remove the notification from the MBeanServer
              MBeanServerHelper.removeClientNotification(name, listener);
          } else {
              // Remove the notification listener from the Target-Client Manager through EventAdmin
              MBeanRoutedNotificationHelper helper = MBeanRoutedNotificationHelper.getMBeanRoutedNotificationHelper();
              helper.removeRoutedNotificationListener(nti, listener);
          }
      }
docs: Remove the given NotificationListener