I am trying to disassociate all of my sites with my hub site and then associate them all again so that I can force an update of the styling. I know the code to remove an association and then create an association however I haven't been able to find any code to iterate through each site. There are no sub-sites and each site is found on https://.sharepoint.com/sites/ .
Thanks :)