code: def delete_resource_subscription(self, device_id=None, resource_path=None, fix_path=True):
          
          devices = [_f for _f in [device_id] if _f]
          if not device_id:
              devices = list(self._queues.keys())
          resource_paths = [resource_path]
          if not resource_path:
              resource_paths = []
              for e in devices:
                  resource_paths.extend(list(self._queues[e].keys()))
  
          # Delete the subscriptions
          for e in devices:
              for r in resource_paths:
                  # Fix the path, if required.
                  fixed_path = r
                  if fix_path and r.startswith("/"):
                      fixed_path = r[1:]
  
                  # Make request to API, ignoring result
                  self._delete_subscription(device_id, fixed_path)
  
                  # Remove Queue from dictionary
                  del self._queues[e][r]
          return
docs: Unsubscribe from device and/or resource_path updates.
  
          If device_id or resource_path is None, or this method is called without arguments,
          all subscriptions are removed.
          Calling it with only device_id removes subscriptions for all resources
          on the given device.
  
          :param device_id: device to unsubscribe events from. If not
              provided, all registered devices will be unsubscribed.
          :param resource_path: resource_path to unsubscribe events from. If not
              provided, all resource paths will be unsubscribed.
          :param fix_path: remove trailing / in resouce path to ensure API works.
          :return: void