I found How to remove specific country in WooCommerce answer code that works for unsetting one country. How can I use it to unset more countries 3-4?
This code works to hide US from my geolocation list. I need it to hide a few more countries based on countrycodes "US", "UK", "RU" etc. I know that for checkout it can be done from settings but I need it to remove a few countries for a geolocation plugin that by default shows a list of all countries to choose from.