https://github.com/svenkle/google-drive-add-to-explorer/blob/develop/Remove%20Google%20Drive.reg
This specific link gave me the steps necessary to solve the problem for me. What I wound up doing I first uninstalled the iCloud app from settings apps. Then I went into my one drive settings right click on the one drive cloud icon on the taskbar select settings then from there the backup tab. On that specific tab I selected manage backup, pressed stop backup on the pictures option and closed that selection window by pressing the X on the top right and ok on the bottom of the backup tab.
Then while keeping my web browser on the above link open I opened Regedit and ran as administrator that specific link gives instructions regarding the keys for removing google drive but they work also for iCloud Photos. First I searched the registry for iCloud Photos matching the whole string, the first results were on this location.
[-HKEY_CURRENT_USER\Software\Classes\CLSID\
There will be one key per iCloud Photos folder on the file explorer left side I resized Regedit in my case in order to see the entire key I had to delete I deleted the key and then. I pressed F3 to get the next one, I had to do four deletions in that part of Regedit as I had four iCloud photos folders on my file explorer. After deleting the fourth key I pressed F3 again and my next result was on this section.
[-HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\
These part of the keys {81539FE6-33C7-4CE7-90C7-1C7B8F2F2D41} were identical to the ones I had just deleted in the previous section. So I deleted four keys in this section as I said before I had four iCloud Photos folders. For the next part I closed all the branches in Regedit and went to the third section directly.
-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\
Once there I checked each key and I had one key that had one drive which I left untouched and the rest had iCloud Photos I deleted four keys there, this {81539FE6-33C7-4CE7-90C7-1C7B8F2F2D41} portion of the keys repeated themselves in the fourth and last location which is this location
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel
I accessed it directly and deleted the same four keys, there will also be one key for one drive which I didn't delete just like on the previous step.
Finally I exited Regedit, in my personal case I restared my computer checked my file explorer and the iCloud Photos folders were all gone. I then reinstalled the iCloud app again restarted the computer twice and there is now only one iCloud Photos folder on file explorer.
The root cause of this problem is that if One Drive syncs the pictures folder, and for people who like me have both One Drive and iCloud every time the computer starts iCloud logs in again and One Drive creates an new iCloud pictures folder on file explorer and therefore those of us who use both applications need to make sure that One Drive does not sync the pictures folder prior to installing the iCloud app. That's why I started stopping the backup with one drive settings first. Uninstalled iCloud as my second step, deleted the keys on regedit and then reinstalled iCloud.