Thank you, this solved the problem of iCloud not syncing or being stuck with cloud icon next to some folders/files.
I give below all the correct steps (the terminal command you suggested is not 100% correct, there is a typo):
Go to ~/Library/Application Support/
Delete the folder 'CloudDocs'
Open Terminal and type killall bird
Boom, problem solved: iCloud corrupted cache is gone and files/folder start syncing from scratch and every cloud icon next to folders / files is gone!
Topic:
App & System Services
SubTopic:
Core OS
Tags: