How to Stop OneDrive from Deleting Cloud Photos When Deleted Locally
Question details
The user wants to save local disk space by removing photos from their laptop without OneDrive automatically deleting the corresponding copies stored in the cloud.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Freeing up local hard drive space while ensuring important photos remain safely backed up in cloud storage.
- Observed behavior
- Deleting a photo from the local synced folder automatically deletes it from the OneDrive cloud storage due to bidirectional synchronization.
Before changing your synchronization settings, ensure you have fully updated the OneDrive application and Windows OS, as older versions may not display the necessary Files On-Demand options.
Enable OneDrive Files On-Demand to Free Up Local Space
Use the built-in Files On-Demand feature to remove local file copies while keeping the original files safely stored in your OneDrive cloud.
OneDrive synchronization is bidirectional by default. This means any changes made on your laptop, including deletions, are automatically reflected in the cloud. To save local disk space without deleting the cloud files, you should utilize the 'Free up space' feature rather than simply deleting the files.
Files On-Demand allows you to see all your files in File Explorer, but they will only download and consume local storage when you open them.
Click the blue or white OneDrive cloud icon in the Windows taskbar notification area, click the Gear (Help & Settings) icon, and select 'Settings'.
Navigate to the 'Sync and backup' or 'Settings' tab in the OneDrive settings window, locate the 'Files On-Demand' section, and toggle it on or click 'Free up disk space'.
Open Windows File Explorer and navigate to your OneDrive folder that contains the photos you wish to remove from your local drive.
Right-click the specific photos or entire folders you want to remove locally and select 'Free up space' from the context menu. The files will remain visible with a blue cloud icon, indicating they are now stored entirely in the cloud.

Restore Accidentally Deleted Photos
Recover photos that were already deleted locally and subsequently removed from the cloud due to bidirectional synchronization.
Save Space and Manage Documents Efficiently with WPS Office
If you are optimizing your local storage with OneDrive Files On-Demand, consider keeping your entire workflow lightweight by using WPS Office. As a powerful, all-in-one productivity suite, it requires minimal disk space while offering robust features for your daily tasks.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer file and follow the quick on-screen instructions to set up the suite on your computer.
- 3. Connect Your Cloud: Open WPS Office, sign in, and connect your preferred cloud drives to access your online files seamlessly without taking up local space.

Frequently Asked Questions
Why does OneDrive delete my files from the cloud when I delete them on my computer?
OneDrive uses a process called bidirectional synchronization. This means it constantly mirrors your actions to ensure your local folder and the cloud are identical. If you add, edit, or delete a file on your PC, the exact same action is automatically performed in the cloud.
Can I stop a specific folder from syncing to my PC entirely?
Yes. You can use the 'Choose folders' feature in OneDrive settings (under the Account tab) to uncheck specific folders. Unchecked folders will be hidden from your local computer and will only remain available online in your cloud storage.
What do the different OneDrive status icons mean in File Explorer?
A blue cloud icon means the file is 'online-only' and takes up zero local space. A green checkmark with a white background means the file has been downloaded and is locally available. A solid green circle with a white checkmark means the file is set to 'Always keep on this device'.
Does archiving my photos prevent OneDrive from deleting them?
If you 'archive' photos by moving them out of the OneDrive folder to an unsynced local folder on your hard drive, OneDrive will treat this as a deletion and remove them from the cloud. To keep photos in the cloud while saving local space, it is better to leave them in the OneDrive folder and use the 'Free up space' option.




