I was recently going insane trying to figure out why everything on my Mac was DeathGod slow.
I was actually in the process of moving things out of iCloud, which was taking literal days. And I was thinking I needed to replace my Mac altogether.
Then I did another 37 AI/google searches and found some hints. Here's what I ended up going with.
The problem is basically these giant cache files of contents on iCloud. They live in places like this:
cd ~/Library/Application\ Support/FileProvider/*/databasecd ~/Library/Application\ Support/FileProvider/open .Go into the folder with the long UUID string (like in the screenshot above)
Go into the database folder inside that
Delete everything inside the database folder:
rm -rf *First of all, I had a 44 GB file in one of mine.
44 gigabytes.
No wonder the system couldn't do anything. It couldn't read the cache file describing what was in the folder, let alone being able to do anything with it.
When you delete those files, it forces iCloud to regenerate its local database from scratch. I didn't lose any data, and things started working within just a couple of minutes.
Very soon after doing this and restarting, you should see your computer basically come back to life.
Hope it works for you!