How to Delete OneDrive Files Without Deleting PC Copies
In this article
Yes, you can delete files from OneDrive without removing them from your PC. The key is to stop OneDrive from syncing those files first, or to use a method that removes the cloud copy while keeping the local file. The safest and most reliable way is to turn off syncing for the folder or file, then delete the cloud version through the OneDrive website or app. This guide walks you through the exact steps, plus common mistakes and troubleshooting.
What You'll Need
- A Windows PC or Mac with OneDrive installed and signed in.
- Access to the OneDrive website (onedrive.live.com) via a browser.
- Basic familiarity with File Explorer (Windows) or Finder (Mac).
- Patience: syncing changes can take a few minutes.
Step-by-Step
- Check what's syncing. In Windows, click the OneDrive cloud icon in the system tray (near the clock) and select Settings (or Help & Settings > Settings). Go to the Account tab and click Choose folders. This shows which folders are set to sync. Note the ones containing files you want to delete from the cloud only. (Labels may vary slightly by OneDrive version.)
- Pause syncing temporarily. In the same OneDrive settings window, go to the Account tab and click Pause syncing, then choose 2 hours (or 24 hours). This prevents immediate deletion from propagating to your PC while you work. Alternatively, you can right-click the OneDrive icon and select Pause syncing.
- Open the OneDrive folder on your PC. In File Explorer, navigate to your OneDrive folder (usually
C:\Users\YourName\OneDrive). Locate the file or folder you want to remove from the cloud only. - Copy the file to a safe local folder (optional but recommended). If the file is not already stored elsewhere on your PC, copy it to a non-OneDrive folder (e.g.,
Documents\LocalBackup). This ensures you have a local copy even if something goes wrong. - Delete the file from the OneDrive website. Open a browser and go to onedrive.live.com. Sign in with your Microsoft account. Navigate to the file or folder, right-click it, and choose Delete. The file moves to the OneDrive recycle bin (it stays there for 30 days by default).
- Remove the local copy if desired. After deleting from the cloud, the local file may still exist on your PC. You can now delete it from your OneDrive folder if you no longer need it locally. But if you want to keep it on your PC, move it out of the OneDrive folder first (step 4) so it won't be re-synced.
- Resume syncing. Right-click the OneDrive icon and select Resume syncing (or go back to Settings and click Resume). OneDrive will sync the deletion (the file is now in the cloud recycle bin) and update your local folder accordingly. If you moved the file out, it will remain on your PC.
Common Mistakes
- Deleting from File Explorer without pausing sync. If you delete a file from your local OneDrive folder while sync is active, OneDrive will delete it from the cloud too. Always pause sync or use the website method.
- Forgetting about the recycle bin. Deleted files go to the OneDrive recycle bin, not gone forever. They still count toward your storage quota until permanently removed. Empty the recycle bin if you need to free space.
- Assuming "Free up space" deletes from cloud. The "Free up space" option in File Explorer makes files online-only (removes local copy but keeps cloud). That's the opposite of what you want here.
- Not checking folder sync settings. If a folder is set to sync, any local deletion will propagate. Use Choose folders to stop syncing a folder before deleting its contents from the cloud.
Tips
- Use the OneDrive website for deletions when you want to be sure only the cloud copy is affected.
- Keep a local backup of important files outside the OneDrive folder before making changes.
- If you frequently need to delete cloud-only files, consider setting folders to "online-only" (right-click > Free up space) so local copies don't exist to be accidentally deleted.
- Remember that OneDrive recycle bin retains files for 30 days; you can restore them if you change your mind.
Troubleshooting
- File reappears after deletion. Sync may have been active. Pause syncing, delete from the website, then resume. Also check if the file is in a shared folder that others are syncing.
- Cannot pause syncing. Make sure OneDrive is running and you're signed in. If the option is greyed out, restart OneDrive (right-click icon > Close, then relaunch from Start menu).
- Deletion doesn't reflect on PC. After resuming sync, give it a few minutes. If still not updated, check the OneDrive icon for errors. You can also manually refresh File Explorer (F5).
- Accidentally deleted local file. Check the Recycle Bin on your PC. If not there, restore from OneDrive recycle bin (which may re-sync the file to your PC).
- Sync stuck or errors. Restart your PC, ensure OneDrive is updated, and check the Microsoft 365 status page for outages. Sign out and back in to OneDrive if needed.
Frequently Asked Questions
Can I delete a file from OneDrive but keep it on my PC?
Yes. The safest way is to move the file out of the OneDrive folder on your PC first, then delete it from the OneDrive website. Alternatively, pause syncing, delete from the website, and then move the local file out of the OneDrive folder before resuming sync.
What happens if I delete a file from my OneDrive folder in File Explorer?
If sync is active, the file is deleted from both your PC and the cloud (it goes to the OneDrive recycle bin). To avoid this, pause syncing or use the website method.
Does emptying the OneDrive recycle bin free up space?
Yes. Files in the recycle bin still count toward your storage quota. Emptying it permanently removes them and frees space.
Can I recover a file after deleting it from OneDrive?
Yes, from the OneDrive recycle bin for up to 30 days (default). After that, it's permanently deleted. Personal accounts may have different retention; check your OneDrive settings.
Is there a way to delete multiple files from OneDrive without affecting my PC?
Yes. Pause syncing, then select multiple files on the OneDrive website and delete them. Resume syncing afterward. Ensure you have local copies if needed.
Why does OneDrive keep restoring deleted files?
This can happen if the file is in a shared folder that others are syncing, or if sync was not paused properly. Check shared folder settings and pause sync before deleting.