Why OneDrive Appears to Store Duplicate Files on macOS
Question details
Users notice that OneDrive on macOS appears to keep files in both the CloudStorage directory and the OneDrive group-container directory, raising concerns about duplicate disk space usage.

- Product
- Microsoft OneDrive
- Device & OS
- macOS
- Scenario
- Checking local disk usage and managing synchronized cloud files on a Mac computer.
- Observed behavior
- Files appear to be duplicated across two different system directories (CloudStorage and group-container), seemingly occupying twice the expected disk space.
Before attempting to fix this issue, ensure your macOS and OneDrive app are fully updated. Do not manually delete either the CloudStorage or group-container directories, as this can severely damage your synchronization state and lead to data loss.
Verify Actual Disk Usage and APFS Behavior
Determine if the files are taking up physical space or if macOS is simply displaying APFS clones/symlinks incorrectly in Finder.
Due to Apple's File Provider framework on macOS, OneDrive places files in a hidden group-container location while projecting them into the visible CloudStorage directory. In many cases, macOS uses APFS clones to link these files, meaning no actual duplicate disk space is consumed, even though Finder reports the file sizes twice.
Navigate to Applications > Utilities and launch the Terminal app on your Mac.
Use the 'df -h' command to check your total available disk space. Note the available storage before and after adding a large file to OneDrive.
Click the OneDrive cloud icon in your Mac menu bar, click the gear icon for Settings, navigate to Preferences, and ensure 'Files On-Demand' is enabled. This forces files to remain in the cloud until opened, reducing local footprint.

Collect Logs and Contact Microsoft Support
If you have verified that physical space is actually being consumed twice, collect your synchronization logs for account-specific investigation.
Use a Third-Party Cloud Mounting Tool
Bypass the native OneDrive macOS client entirely by using third-party mounting software.
Switch to WPS Office for a Streamlined Experience
If complicated cloud sync issues with Microsoft OneDrive and macOS are slowing down your productivity, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with its own streamlined cloud storage solution.
- 1. Download WPS Office for Mac: Visit the official WPS website and download the macOS version of WPS Office.
- 2. Sign in to WPS Cloud: Create a free account or log in to instantly access 1GB of free, hassle-free cloud storage.
- 3. Edit your files: Open your existing .docx, .xlsx, and .pptx files directly from the cloud without worrying about complex local sync folders.

Frequently Asked Questions
Can I manually delete the OneDrive group-container directory on macOS?
No. Manually deleting files from either the CloudStorage or the group-container directory can severely damage OneDrive's synchronization process and may lead to permanent data loss.
Why does macOS Finder show both folders taking up full space?
macOS Finder often calculates the size of APFS clones or linked files as if they were completely separate physical files. This can make it appear as though double the disk space is being used, even if it is simply a virtual representation.
Does Files On-Demand fix this duplicate folder issue?
Files On-Demand keeps files securely in the cloud until you open them, reducing your overall local disk usage. While it doesn't change how the File Provider framework maps directories, ensuring this feature is turned on drastically minimizes the storage footprint in both folders.
Will reinstalling OneDrive fix the duplicated storage?
Reinstalling or resetting OneDrive can resolve temporary sync glitches and clear cache files, but it will not change the fundamental way OneDrive integrates with the macOS File Provider framework via the CloudStorage and group-container directories.




