def _remove_redundancy_routers(self, context, router_ids, ports,<EOL>delete_ha_groups=False):
subnets_info = [{'<STR_LIT>': port['<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT>']}<EOL>for port in ports]<EOL>for r_id in router_ids:<EOL><INDENT>for i in range(len(subnets_info)):<EOL><INDENT>self.remove_router_interface(context, r_id, subnets_info[i])<EOL>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': ports[i]['<STR_LIT>'], '<STR_LIT>': r_id})<EOL>if delete_ha_groups and r_id == router_ids[<NUM_LIT:0>]:<EOL><INDENT>self._delete_ha_group(context, ports[i]['<STR_LIT:id>'])<EOL><DEDENT><DEDENT>self.delete_router(context, r_id)<EOL>LOG.debug("<STR_LIT>", r_id)<EOL><DEDENT>
Deletes all interfaces of the specified redundancy routers
        and then the redundancy routers themselves.