How to Delete Files from OneDrive Without Deleting Them on Your PC
In this article
Yes, you can delete files from OneDrive without removing them from your computer. This is achieved by unlinking the folder from the sync process or moving files out of the synced directory. The result is that the file remains on your local hard drive but disappears from the cloud and other devices.
What You'll Need
- A Windows PC with the OneDrive app installed
- The specific files or folders you wish to separate from the cloud
- Administrative access if you need to change system settings for large-scale changes
Step-by-Step
- Open File Explorer: Press the Windows key + E to open File Explorer. Locate the OneDrive icon in the left-hand navigation pane. It usually has a blue cloud symbol.
- Select Your Files: Navigate to the folder containing the files you want to keep locally but remove from the cloud. Select the files or folders. You can hold Ctrl to select multiple items or Shift to select a range.
- Cut the Files: Right-click the selected items and choose "Cut," or press Ctrl+X. This prepares the files to be moved rather than just deleted.
- Navigate to a Local Folder: Go to a location on your computer that is not inside the OneDrive folder structure. Common choices include the Desktop (if not synced), Documents (if not synced), or a dedicated local folder like C:\LocalFiles.
- Paste the Files: Right-click in the empty space of the destination folder and choose "Paste," or press Ctrl+V. The files will transfer to this local location.
- Verify Sync Status: Wait a moment for the OneDrive sync engine to detect the change. The files should disappear from the OneDrive folder view in File Explorer and from the OneDrive web interface. They remain safe in the local folder you pasted them into.
Note: Menu labels may differ slightly depending on your version of Windows 10 or 11. If you see "Move" instead of "Cut," use that option directly.
Common Mistakes
The most frequent error users make is selecting "Delete" instead of "Move." If you simply press the Delete key while the file is inside the OneDrive folder, it will be removed from both the cloud and your local computer. Always ensure you are moving the file to a non-synced location first.
Another mistake is assuming that deleting a file from the OneDrive website will only affect the cloud. If your PC is synced, deleting a file via the web browser often triggers the OneDrive desktop app to delete the local copy as well. Always manage deletions through the local File Explorer interface when you want to preserve the local copy.
Tips
Use Free Up Space: If you want to save local disk space but keep the file accessible online, right-click the file in OneDrive and select "Free up space." This removes the local copy but keeps a placeholder in the cloud. This is the opposite of what you asked for, but useful to know if you ever need to reverse the logic.
Check Sync Settings: Before moving files, check which folders are actually syncing. Go to the OneDrive cloud icon in your system tray, click the gear icon, and select "Settings" > "Account." Here you can choose "Choose Folders." Unchecking a folder stops syncing it entirely, keeping it local if you move it there manually.
Troubleshooting
If the files do not disappear from OneDrive after moving them, check the following:
Sync Delay: OneDrive may take several minutes to process the deletion. Check the system tray icon for a spinning arrow or a checkmark. If it shows an error, click the icon to read the message.
Incorrect Destination: Ensure you did not paste the files into another folder that is also synced to OneDrive. Only folders outside the OneDrive directory tree are considered "local only." If the files reappear in OneDrive, you may have accidentally dragged them back into the sync folder. Move them again to a different local path.
Web Interface Conflict: If you recently deleted files via the web, wait for the sync client to catch up. Do not attempt to move files while the sync status shows "Syncing" or "Error."
Frequently Asked Questions
Will deleting a file from OneDrive delete it from my PC?
Only if the file is currently stored inside a folder that is actively syncing to OneDrive. If you move the file to a local folder outside the OneDrive directory first, it will remain on your PC.
Can I undo this action?
Yes. If you move files incorrectly, you can move them back into the OneDrive folder. If you accidentally delete them, check the OneDrive Recycle Bin on the web or your local Recycle Bin, depending on where the deletion occurred.
Does this work for entire folders?
Yes. You can cut and paste entire folders. However, be aware that any subfolders within that main folder must also be moved to a local location to stop syncing.
What happens to shared links?
Once the file is moved out of OneDrive, any existing sharing links will break because the file no longer exists in the cloud storage. You will need to create new links if you share the local file via email or other means.
Is there a way to pause syncing permanently?
You can pause syncing temporarily via the system tray menu. For permanent separation, unlinking the PC from OneDrive in Settings is the most robust method, though it requires re-linking later if you want to sync again.