Quick fix: Click the OneDrive cloud icon → Settings (gear icon) → Account tab → Unlink this PC. After unlinking, sign in to OneDrive again — during sign-in, choose a different folder location (e.g., D:\OneDrive). Existing files are re-synced to the new location.
Your C: drive is small and OneDrive is consuming most of it. You want to move the OneDrive folder to D: (a larger second drive). The straightforward Windows method requires unlinking OneDrive and resetting it up — files re-sync from cloud to the new location, no manual file copy needed.
Affects: Windows 11 (and Windows 10) with OneDrive client.
Fix time: ~30-60 minutes (mostly waiting for re-sync).
What causes this
OneDrive’s sync folder location is set during initial setup. There’s no in-place “move folder” option in OneDrive settings (unlike some sync clients). The supported approach is to unlink OneDrive (which removes the sync state but keeps cloud data intact), then sign back in and pick a new local folder. OneDrive re-syncs cloud data to the new location.
Method 1: Unlink, re-link with new path
The standard procedure.
- Before starting, ensure your destination drive has enough free space. OneDrive will download files based on your sync settings — for “Always available” folders, full size; for online-only, just metadata.
- Optional but recommended: in OneDrive Settings → Sync and backup → Advanced settings → Free up space — to make all files online-only before unlinking (faster re-sync since no local data needs to be re-downloaded).
- Click the OneDrive cloud icon in the system tray → Settings (gear icon) → Settings.
- Switch to the Account tab.
- Click Unlink this PC. Confirm.
- The OneDrive sync icon disappears. The folder at
C:\Users\you\OneDrivestill exists on disk but is no longer synced. - Move the OneDrive folder (renamed for backup) to the new location, or just leave it for later cleanup.
- Open Settings → Accounts → Email & accounts, or just launch OneDrive from Start menu.
- The OneDrive setup wizard opens. Sign in with your Microsoft account.
- When asked for OneDrive folder location, click Change location.
- Browse to your new drive (e.g., D:). Create or pick a folder there (e.g.,
D:\OneDrive). - Click Next. Complete the setup wizard.
- OneDrive starts syncing your cloud files to the new location. Online-only files appear with cloud icons immediately; pinned files download as data permits.
This is the supported and reliable method.
Method 2: Migrate “always available” files manually to skip re-download
For users with many large pinned files who want to avoid downloading them again.
- Before unlinking: copy the fully-downloaded files (those with green checkmarks, not cloud icons) from
C:\Users\you\OneDriveto your new locationD:\OneDriveusing File Explorer (Ctrl+C/Ctrl+V). - This preserves the data. The cloud-only files (blue cloud icons) skip — they’ll re-download as online-only on the new path anyway.
- Unlink OneDrive (Method 1 steps 3-6).
- Re-link OneDrive with the new location set to
D:\OneDrive. - OneDrive scans the existing files there, matches them to cloud counterparts, and marks them as already-synced. Re-download is skipped for matching files.
- This saves bandwidth and time when you have GB of pinned content.
Use this when you have substantial “always available” data you want to keep.
Method 3: Use Group Policy or registry for IT deployment
For managing OneDrive folder location across many PCs.
- For Pro/Enterprise via Group Policy: Computer Configuration → Administrative Templates → OneDrive → Set the maximum size of a user’s OneDrive that can download automatically and Silently move Windows known folders to OneDrive.
- For Default location enforcement, OneDrive ADMX templates from Microsoft expose Set default folder location policy.
- Set the policy to your preferred path (e.g.,
D:\OneDrive\%USERNAME%). - Apply via Group Policy and force refresh:
gpupdate /force. - New OneDrive setups use the policy-defined location.
This is the right approach for IT environments rolling out OneDrive on PCs with specific storage requirements.
How to verify the fix worked
- The OneDrive folder is at the new path:
D:\OneDrive(or wherever you chose). - The cloud icon shows synced (green checkmark, no animation).
- Open OneDrive Settings → Account tab. The folder location reflects the new path.
- Run
Get-Process OneDrive | Select-Object Pathin PowerShell — OneDrive process is running. - Disk space on C: drive is reclaimed (the old OneDrive folder under C: is no longer being added to).
If none of these work
If the re-link won’t use the new location, three causes apply. Insufficient permissions: the destination folder may need explicit user write permissions. Right-click new folder → Properties → Security → ensure your user has Full Control. Encrypted destination: BitLocker-encrypted drives may need to be unlocked first. OneDrive cache lingering: open %LocalAppData%\Microsoft\OneDrive → close OneDrive → delete contents of settings folder. Restart OneDrive setup. For chronic move failures, the cleanest backup approach is to install rclone (free, open-source) and configure it to sync OneDrive to your preferred local path independently of the official OneDrive client.
Bottom line: Moving OneDrive sync folder = unlink + re-link with new path. Pre-copy fully-downloaded files to skip re-download. Online-only files re-sync metadata quickly.