Stop OneDrive Storing Files Locally (Error 5026 RC)
In this article
Yes—you can stop OneDrive from storing files locally by turning on Files On‑Demand and adjusting folder sync settings, which also eliminates the 5026 RC sync error.
What You’ll Need
- A Windows 10 or Windows 11 PC with the OneDrive client installed
- Administrator privileges (required to change sync policies on some machines)
- An active internet connection
- The latest OneDrive version (check for updates via the Microsoft Store or the OneDrive app)
Step‑By‑Step
- Open the OneDrive client. You can do this by clicking the cloud icon in the notification area (system tray) on the right side of the taskbar. If the icon is hidden, click the upward arrow to reveal hidden icons.
- Right‑click the OneDrive cloud icon and select Settings. This opens the OneDrive Settings dialog. (Menu wording may vary slightly between Windows 10 and Windows 11, but the option is always called Settings.)
- Switch to the Settings tab if you are not already there. Locate the checkbox labeled Save space and download files as you use them. This is the Files On‑Demand toggle. Check the box and click OK. Enabling this option tells OneDrive to keep only placeholders locally and download the full file only when you open it.
- Now configure which folders you want to keep online‑only. In the same Settings dialog, go to the Account tab and click the Choose folders button next to the account you want to modify.
- In the Choose folders window, you will see a list of all folders in your OneDrive. Uncheck any folder you want to store online‑only. Checked folders will sync locally; unchecked folders will appear as placeholders and download on demand.
- Click OK to save your selection. OneDrive will begin converting the unchecked folders to online‑only status. You may see a brief “Processing” spinner as placeholders are created.
- If you are seeing the 5026 RC error, it usually indicates a corrupted local cache. Close OneDrive by right‑clicking the cloud icon and selecting Close OneDrive. Then, navigate to
%localappdata%\Microsoft\OneDrive\in File Explorer and delete the filesettings.iniand the foldercache. Re‑open OneDrive from the Start menu; the client will rebuild its cache and the error should disappear. - After OneDrive restarts, verify that Files On‑Demand is still enabled (repeat steps 1‑3). Then, right‑click any placeholder file and choose Free up space to ensure the file is stored online‑only.
- Test the configuration by opening a few files from the online‑only folders. The files should download momentarily, open, and then you can right‑click them again and select Free up space to return them to placeholder status.
- Finally, confirm that the 5026 RC error no longer appears by checking the OneDrive notification area for any warning symbols. If a warning persists, repeat the cache‑clear step or proceed to the Troubleshooting section below.
Common Mistakes
- Disabling Files On‑Demand instead of enabling it. The checkbox is labeled “Save space and download files as you use them.” Leaving it unchecked forces all files to stay on the device.
- Unchecking folders while OneDrive is still syncing. If a folder is actively uploading or downloading, unchecking it can cause a temporary sync error.
- Deleting the wrong files in the cache folder. Only remove
settings.iniand thecachesub‑folder; deleting other files may reset account credentials. - Skipping the restart of OneDrive after cache deletion. The client must be fully closed before you clear the cache; otherwise the old cache remains in memory.
- Assuming the setting applies to all accounts. If you have multiple Microsoft accounts linked, you must repeat the “Choose folders” step for each account.
Tips
- Use the Free up space option on individual files you know you won’t need offline; this keeps the placeholder size minimal.
- Open OneDrive Settings > Network and limit upload/download bandwidth if you have a metered connection; this prevents sync from stalling while you adjust folder selections.
- Keep OneDrive updated automatically via Windows Update. Microsoft frequently releases fixes that address sync errors like 5026 RC.
- If you share a PC with other users, enable Files On‑Demand for each user profile to avoid duplicate local copies.
- For large media libraries, consider storing the original files on an external drive and linking that drive in OneDrive via the Add a folder option in the Choose folders window.
Troubleshooting
If the steps above do not stop local storage or the 5026 RC error persists, follow this escalation path.
- Restart the PC. A simple reboot clears temporary system locks that may block OneDrive from applying new settings.
- Check for OneDrive updates. Open Settings > Windows Update > Check for updates. Install any pending OneDrive or OS updates.
- Sign out and back in. Right‑click the OneDrive icon, choose Settings, go to the Account tab, and click Unlink this PC. After the client restarts, sign in again with your Microsoft credentials.
- Reset OneDrive. Press Win+R, type
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter. The client will close and automatically restart. If it does not restart, run%localappdata%\Microsoft\OneDrive\onedrive.exemanually. - Re‑install OneDrive. Download the latest installer from the official Microsoft OneDrive page. Run the installer; it will replace the existing client without affecting your cloud data.
- Inspect the sync log. Open the OneDrive Settings dialog, go to the Office tab, and click View sync problems. Look for entries mentioning error 5026; they often point to a specific file path that is corrupted. Move that file out of the OneDrive folder, let the client sync, then move it back if needed.
- Contact Microsoft Support. If none of the above resolves the issue, gather the sync log and a screenshot of the error, then open a support ticket through the OneDrive Help & Settings > Help & Settings > Get help link.
Frequently Asked Questions
Will disabling local copies delete my files from OneDrive?
No. Files remain safely stored in the cloud; only the local placeholder is removed. You can always download the file again by opening it.
Can I apply Files On‑Demand to a shared OneDrive for Business library?
Yes. The same Settings > Choose folders workflow works for OneDrive for Business, though your administrator may restrict certain folder selections.
Why does the 5026 RC error appear after a Windows update?
Updates sometimes reset the OneDrive cache, leaving stale references. Clearing the cache as described in step 7 rebuilds a clean state.
Is there a way to force all files to stay online‑only without selecting each folder?
After enabling Files On‑Demand, you can right‑click the OneDrive folder in File Explorer and choose Settings > Choose folders, then uncheck the top‑level folder. This makes every sub‑folder online‑only.
Do mobile OneDrive apps respect the Files On‑Demand setting?
Mobile apps always store files in the cloud and download on demand, so the desktop setting does not affect them.
Will enabling Files On‑Demand affect file version history?
No. Version history is maintained in the cloud regardless of where the current copy resides.