def METHOD_NAME(self, socket):
    """Remove a 0MQ socket or native fd for I/O monitoring.
    Parameters
    ----------
    socket : Socket
        The socket instance to stop polling.
    """
    idx = self._map.pop(socket)
    self.sockets.pop(idx)
    # shift indices after deletion
    for socket, flags in self.sockets[idx:]:
        self._map[socket] -= 1