How I Accidentally Deleted My Mac Files and Got Them Back (iCloud Drive Archive Recovery)
We’ve all been there—clicking something too quickly and instantly regretting it. Recently, I turned off iCloud sync on my Mac, clicked on the option to remove files, and boom—everything from my Documents and Desktop folders vanished.
Worse? Only the folders were synced to iCloud, not the actual files. So when I looked inside iCloud, there was nothing useful to restore.
For a moment, I thought I had lost everything. But luckily, macOS had my back. Here’s how I recovered all my files, and how you can too if you ever face this scary situation.
Where Do Deleted Mac Files Go When iCloud Sync Is Turned Off?
When you turn off iCloud Drive sync on macOS and choose to remove files, macOS doesn’t immediately delete them forever. Instead, it moves them into a local folder called:
/Users/<YourUsername>/iCloud Drive (Archive)/
This folder acts like a backup snapshot of your iCloud-synced data before it was removed from the system.
Inside, you’ll find subfolders for Documents and Desktop, and in my case, all my missing code projects were there.
Steps to Recover Your Files
- Open Finder.
- Press ⌘ + Shift + G (Go to Folder).
- Enter:
/Users/<YourUsername>/iCloud Drive (Archive)/
- Hit Enter.
- You should see your archived files and folders inside.
From here, you can simply copy them back into your Documents folder. For example, using Terminal:
mv "/Users/YourUsername/iCloud Drive (Archive)/Documents/Codes/"* ~/Documents/
⚠️ Tip: Replace YourUsername
with your actual macOS username.
Things to Keep in Mind
- The archive survived a restart in my case, but don’t rely on it staying forever. Move your files out as soon as possible.
- Always double-check iCloud sync before clicking Remove Files.
- If you use GitHub or other cloud backups, syncing your projects there can save you from disasters like this.
Final Thoughts
Accidentally deleting files can feel like the end of the world, but macOS’s iCloud Drive (Archive) saved me. If you ever face a similar situation, don’t panic—just check that folder.
For more tech tips and personal experiences, visit my blog at sarthakparajuli.com.np.
Also, if you’re into handy tools that make life easier, check out sajilotool.com — a growing collection of simple yet powerful online utilities.