<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_network(self, action, n_name, **kwargs):
 """ Removes a network. :param action: Action configuration. :type action: dockermap.map.runner.ActionConfig :param n_name: Network name or id. :type n_name: unicode | str :param kwargs: Additional keyword arguments. :type kwargs: dict """

        c_kwargs = self.get_network_remove_kwargs(action, n_name, **kwargs)
        res = action.client.remove_network(**c_kwargs)
        del self._policy.network_names[action.client_name][n_name]
        return res