code: def remove_server(self, server_id):
          
  
          # Validate server_id
          server = self._get_server(server_id)
  
          # Delete any instances we recorded to be cleaned up
  
          if server_id in self._owned_subscriptions:
              inst_list = self._owned_subscriptions[server_id]
              # We iterate backwards because we change the list
              for i in six.moves.range(len(inst_list) - 1, -1, -1):
                  inst = inst_list[i]
                  server.conn.DeleteInstance(inst.path)
                  del inst_list[i]
              del self._owned_subscriptions[server_id]
  
          if server_id in self._owned_filters:
              inst_list = self._owned_filters[server_id]
              # We iterate backwards because we change the list
              for i in six.moves.range(len(inst_list) - 1, -1, -1):
                  inst = inst_list[i]
                  server.conn.DeleteInstance(inst.path)
                  del inst_list[i]
              del self._owned_filters[server_id]
  
          if server_id in self._owned_destinations:
              inst_list = self._owned_destinations[server_id]
              # We iterate backwards because we change the list
              for i in six.moves.range(len(inst_list) - 1, -1, -1):
                  inst = inst_list[i]
                  server.conn.DeleteInstance(inst.path)
                  del inst_list[i]
              del self._owned_destinations[server_id]
  
          # Remove server from this listener
          del self._servers[server_id]
docs: Remove a registered WBEM server from the subscription manager. This
          also unregisters listeners from that server and removes all owned
          indication subscriptions, owned indication filters and owned listener
          destinations.
  
          Parameters:
  
            server_id (:term:`string`):
              The server ID of the WBEM server, returned by
              :meth:`~pywbem.WBEMSubscriptionManager.add_server`.
  
          Raises:
  
              Exceptions raised by :class:`~pywbem.WBEMConnection`.