Could you please assert that
 - The remote exists before removing it?
 - Some remote tracking branches exists before and they no longer exists after?