How to Remove an Old OneDrive Folder on Mac Without Deleting Your Active Account
Question details
The user needs a reliable method to identify and delete an inactive, unlinked OneDrive folder on macOS without accidentally deleting the active folder of a remaining connected account.

- Product
- Microsoft OneDrive for Mac
- Device & OS
- macOS
- Scenario
- Managing local storage after unlinking a OneDrive account, which often leaves behind duplicate folders or symbolic links that look identical to the active sync directory.
- Observed behavior
- Duplicate OneDrive folders or timestamped directories remain in the home folder or ~/Library/CloudStorage. It is unclear which folder is actively syncing and which can be safely deleted.
Before attempting to delete any directories, make sure your active OneDrive application is running, connected to the internet, and showing an 'Up to date' sync status.
Identify the Active Folder Using a Cloud Test File
This is the safest method to verify folder activity. By creating a file online, you can observe which local folder downloads it.
Because macOS utilizes the File Provider extension (locating folders under ~/Library/CloudStorage), old symbolic links or unlinked folders may still appear alongside active ones. Testing the sync connection directly prevents accidental data loss.
Open your web browser, log in to your active OneDrive account, and click 'New' > 'Word document' or 'Text document' to create a test file named 'SyncTest'.
Open Finder on your Mac and navigate to your home directory or where your OneDrive folders are located. Check inside both the duplicate and the primary OneDrive folders.
The folder that successfully downloads the 'SyncTest' file within a few moments is your active, connected OneDrive folder.
Press Command + Shift + G in Finder and go to ~/Library/CloudStorage. Verify the folder structure to see which folder matches the active one you just identified.
Once you are absolutely sure which folder is inactive (it did not receive the test file), right-click that specific folder and select 'Move to Trash'.

Pause and Resume Synchronization
If you cannot easily use the web version, pausing and resuming the sync app forces an immediate status refresh on the active local folder.
Manage Documents More Efficiently with WPS Office
If you are tired of dealing with confusing account synchronizations and complex cloud storage setups in Microsoft Office, try WPS Office. It provides a straightforward, lightweight alternative that connects beautifully with multiple cloud services, giving you full control over where your documents are saved without creating messy duplicate directories.

Frequently Asked Questions
Where are OneDrive folders actually stored on modern macOS?
Since macOS Monterey 12.1, OneDrive uses the Apple File Provider platform. The actual files are officially stored in the ~/Library/CloudStorage directory. The OneDrive folders you see in your home directory or sidebar are often symbolic links or aliases pointing to this hidden library location.
Why did OneDrive create a duplicate folder with a timestamp?
When you reset the OneDrive application or log into a new account while an old configuration still exists, macOS prevents overwriting the old data. Instead, it renames the old folder by appending a timestamp or date to its name, allowing the new active account to create a fresh directory.
Is it safe to delete the entire CloudStorage folder?
No, you should never delete the entire ~/Library/CloudStorage directory. Doing so could corrupt or permanently delete files from other synced cloud services like iCloud Drive or Google Drive. Only target and delete the specific, inactive OneDrive folder inside that directory.




