You set a file to free up space in OneDrive Files On-Demand, but the local copy remains and your hard drive does not recover the expected gigabytes. This problem typically occurs because a background process, a sync conflict, or a permission setting prevents the cloud-only placeholder from replacing the full file. In some cases, the OneDrive app itself stops responding to the “Free up space” command due to a corrupted cache or a stalled sync engine. This article explains the specific technical reasons why the space release fails and provides a sequence of fixes that restore the expected behavior.
Key Takeaways: Fixing OneDrive Stuck Files on Windows 11
- Right-click file > Free up space: Manually triggers the conversion from locally available to cloud-only, but can fail if the file is open in another app.
- Settings > Account > Choose folders: Unchecking a synced folder removes all local copies for that folder at once.
- OneDrive icon > Help & Settings > Pause syncing > Quit OneDrive: Restarting the sync engine clears stalled processes that block the free-up command.
Why OneDrive Files On-Demand Fails to Free Up Space
OneDrive Files On-Demand works by creating a placeholder file on your local drive that points to the cloud version. When you right-click a file and select “Free up space,” OneDrive should delete the locally synced content and keep only the placeholder. The space is then reclaimed by the file system. When this does not happen, one of three root causes is usually at fault.
First, the file may be open in another application. Windows 11 locks files that are in use, so OneDrive cannot delete the local copy. Second, the OneDrive sync engine may have stalled due to a large queue, a network interruption, or a corrupted database in the local cache folder. Third, the file may be marked as “Always keep on this device,” which overrides the Free up space command. In rare cases, a Windows 11 file system bug prevents the placeholder from replacing the full file.
The OneDrive sync engine communicates with the Windows 11 file system through a filter driver. When the driver encounters a conflict — for example, a file that is both pinned and marked for freeing — it defaults to keeping the local copy to prevent data loss. This safety mechanism is the primary technical reason the command appears to do nothing.
Steps to Force OneDrive to Free Up Space on Windows 11
Follow these steps in order. Each method addresses a different layer of the problem. Test after each step to see if the space is reclaimed.
Method 1: Close All Open Files and Retry the Free Up Space Command
- Close all applications that might have the file open
Save and close Microsoft 365 apps (Word, Excel, PowerPoint), image editors, and any program that recently accessed the file. Check the system tray for background apps. - Open File Explorer and navigate to the OneDrive folder
Locate the file that shows the solid green check mark (locally available) instead of the cloud icon (online-only). - Right-click the file and select Free up space
Wait 10 seconds. The icon should change to a cloud symbol. If it does not, proceed to Method 2.
Method 2: Unpin the File and Reapply the Free Up Space Command
- Right-click the file in File Explorer and select Always keep on this device
This forces the file to download and pin it. Wait for the sync icon to show a solid green circle. - Right-click the file again and clear Always keep on this device
The file should show a cloud icon. If the icon does not change, restart File Explorer from Task Manager. - Right-click the file and select Free up space
Confirm the icon changes to a cloud. If the space is not freed, continue to Method 3.
Method 3: Reset the OneDrive Sync Engine
- Right-click the OneDrive cloud icon in the system tray and select Help & Settings > Pause syncing > 2 hours
This pauses all sync activity so the engine can clear its internal queue. - Right-click the OneDrive icon again and select Help & Settings > Quit OneDrive
Confirm that the icon disappears from the system tray. - Press Windows + R, type
%localappdata%\Microsoft\OneDrive\OneDrive.exe, and press Enter
This restarts the OneDrive process without loading cached state. Wait 30 seconds for the icon to reappear. - Navigate to the problematic file in File Explorer and right-click > Free up space
If the file still does not free, proceed to Method 4.
Method 4: Remove the Local Cache for the OneDrive Folder
- Quit OneDrive completely as described in Method 3
Ensure no OneDrive process is running in Task Manager. - Open File Explorer and navigate to
%localappdata%\Microsoft\OneDrive\
Delete the folder namedsettingsand the folder namedlogs. Do not delete any other files. - Restart OneDrive from the Start menu
Sign in again. OneDrive will rebuild the cache. This can take several minutes for large libraries. - Right-click the file and select Free up space
The file should now convert to a cloud-only placeholder. Verify the free space on your drive in Settings > System > Storage.
If OneDrive Still Does Not Free Up Space After the Main Fixes
OneDrive Shows “Processing Changes” Indefinitely
When the sync engine is stuck in a loop, the Free up space command is ignored. The cause is usually a corrupted file name or a file path that exceeds 400 characters. Rename the file to a short name with no special characters, then retry the free-up command. If the issue persists, unlink and relink your OneDrive account from Settings > Account > Unlink this PC.
Free Up Space Works on Some Files but Not Others
This indicates a per-file permission problem. The file may be owned by a system process or protected by Windows 11’s Controlled Folder Access. Open Windows Security > Virus & threat protection > Manage ransomware protection and ensure OneDrive is allowed through Controlled Folder Access. Then retry the free-up command.
OneDrive Icon Shows a Red X After Freeing Space
The red X means the sync connection is broken. This happens when the local placeholder file is corrupted. Delete the placeholder file from File Explorer. OneDrive will recreate it from the cloud. Then right-click the new file and select Free up space. The red X should disappear.
OneDrive Files On-Demand: Free Up Space vs Always Keep on This Device
| Item | Free Up Space | Always Keep on This Device |
|---|---|---|
| Purpose | Remove local copy, keep cloud-only placeholder | Force full local download and pin the file |
| Icon after action | Cloud outline icon | Solid green circle with white check mark |
| Disk space used | Minimal (metadata only) | Full file size |
| Offline availability | Requires internet to open | Available without internet |
| Common failure | File in use or sync stalled | Large files may fail to download fully |
You now understand why OneDrive Files On-Demand refuses to free up space on Windows 11 and have a sequence of fixes that address the root causes: open file locks, stuck sync engine, corrupted cache, and permission blocks. Start with the simplest step — close all apps and retry the command — then escalate to the cache reset if needed. To prevent this problem in the future, set OneDrive to pause syncing before you perform a bulk free-up operation on a large folder.