How to Delete OneDrive Files but Keep Them on PC
In this article
To delete files from OneDrive while keeping them on your PC, you need to stop OneDrive from syncing those files and then delete them from the cloud. The safest method is to use the OneDrive settings to unlink your PC or selectively disable syncing for specific folders, then remove the files from the OneDrive website. This ensures your local copies remain untouched. Before you start, make sure you have a backup of any important files, and note that this process works on Windows 10 and Windows 11; Mac users can follow similar steps but the interface may differ.
What You'll Need
- A Windows PC with OneDrive installed and signed in.
- Access to the OneDrive website (onedrive.live.com) via a browser.
- Administrator rights on your PC (to change OneDrive settings).
- A backup of important files (optional but recommended).
Step-by-Step
- Open OneDrive settings. Click the OneDrive cloud icon in the system tray (near the clock). If you don't see it, click the upward arrow to show hidden icons. Then click the gear icon and select Settings. Note: Menu labels can vary slightly by version and region.
- Go to the Account tab. In the settings window, select the Account tab. Here you'll see options related to your linked account.
- Choose folders to sync (optional). If you only want to stop syncing specific folders, click Choose folders and uncheck the folders you want to keep only on your PC. This prevents OneDrive from syncing those folders to the cloud. Click OK to save.
- Unlink your PC (for full stop). If you want to stop syncing entirely, click Unlink this PC under the Account tab. This disconnects OneDrive from your PC but does not delete any files locally or in the cloud. Confirm by clicking Unlink account.
- Sign in to OneDrive website. Open your browser and go to onedrive.live.com. Sign in with the same Microsoft account.
- Delete files from the cloud. Navigate to the files or folders you want to remove. Select them (hover over and check the circle) and click Delete in the top toolbar. Alternatively, right-click and choose Delete. The files will be moved to the OneDrive recycle bin.
- Empty the recycle bin (optional). To permanently delete, go to the recycle bin in the left pane, select the items, and click Delete again. This frees up cloud storage but does not affect your local copies.
- Verify local files are intact. Open File Explorer and check that your files are still in the local OneDrive folder (usually C:\Users\[YourName]\OneDrive). Since you unlinked or stopped syncing, they should remain.
Common Mistakes
- Deleting files directly from File Explorer while OneDrive is still syncing. This deletes them from both your PC and the cloud. Always stop syncing first.
- Unlinking without checking sync status. If files are still syncing, unlinking might leave some files only in the cloud. Wait for sync to complete before unlinking.
- Forgetting to empty the recycle bin. Deleted files stay in the OneDrive recycle bin for 30 days and still count against your storage quota.
- Assuming unlink deletes files. Unlinking only stops sync; it does not delete files from either location. You must manually delete from the cloud.
Tips
- Use Choose folders to selectively sync only what you need, saving space and bandwidth.
- Before unlinking, make sure all files are fully synced (green checkmarks) to avoid data loss.
- If you want to keep files locally but remove from cloud, consider moving them out of the OneDrive folder after unlinking.
- Regularly check the OneDrive recycle bin to manage storage.
- For a cleaner approach, use the OneDrive website to delete files, then unlink your PC to prevent re-syncing.
Troubleshooting
- Files disappear from PC after unlinking. This can happen if files were set to "Free up space" (online-only). Before unlinking, right-click the OneDrive folder and select Always keep on this device to download all files locally.
- OneDrive won't unlink. Restart your PC and try again. If the issue persists, reset OneDrive by going to Settings > Apps > OneDrive > Advanced options > Reset.
- Deleted files still appear. Check the recycle bin and empty it. Also, refresh the File Explorer view.
- Cannot sign in to OneDrive website. Ensure you're using the correct Microsoft account. If you forgot the password, use the account recovery options.
- Local files are missing after deletion. If you deleted files from the cloud while sync was active, they may have been removed locally. Restore from the OneDrive recycle bin or your backup.
Frequently Asked Questions
Will deleting files from OneDrive delete them from my PC?
Only if OneDrive is actively syncing. If you unlink your PC or stop syncing first, deleting from the cloud will not affect local files.
Can I delete files from OneDrive but keep them on my PC without unlinking?
Yes, but you must first move the files out of the OneDrive folder to a different location on your PC, then delete them from the cloud. Otherwise, sync will remove them locally.
What happens to my files if I unlink my PC?
Unlinking stops sync but leaves all files on your PC and in the cloud. You can still access cloud files via the website.
How do I stop OneDrive from syncing a specific folder?
Use the Choose folders option in OneDrive settings to uncheck folders you don't want synced. This keeps them local only.
Does emptying the OneDrive recycle bin affect local files?
No, emptying the recycle bin only permanently deletes files from the cloud. Local copies remain if sync is stopped.
Can I recover files after deleting them from OneDrive?
Yes, from the OneDrive recycle bin within 30 days. After that, they are permanently deleted.