Delete Files from OneDrive but Keep on PC
In this article
Yes, you can delete files from OneDrive cloud storage without removing them from your computer. This is done by changing the file's status to "Keep on this device" or by moving it out of the OneDrive folder. The exact steps depend on whether you're using Windows 10/11, a Mac, or the OneDrive website. Below are the methods for each platform, plus what to do if something goes wrong.
What You'll Need
- A computer with OneDrive installed and synced (Windows or Mac).
- Your Microsoft account login details (if using the web version).
- An internet connection (only needed for the web method or to sync changes).
Step-by-Step
Method 1: Windows 10/11 – Use "Free up space"
- Open File Explorer and go to the OneDrive folder (usually in the left sidebar).
- Locate the file or folder you want to remove from the cloud.
- Right-click on it and select "Free up space" from the context menu.
- A cloud icon will appear on the file. This means the file is now online-only – it's deleted from the cloud but still takes up space on your PC.
- To verify, right-click the file and check its status. It should say "Online-only" or "Free up space" is no longer available.
Method 2: Windows 10/11 – Move files out of the OneDrive folder
- Open File Explorer and navigate to your OneDrive folder.
- Select the files or folders you want to keep locally.
- Cut them (Ctrl+X) and paste them into a different folder on your PC, such as Documents or Desktop (Ctrl+V).
- Once moved, the files are no longer in OneDrive and will be deleted from the cloud after the sync completes. They remain fully on your computer.
- If you want them back in OneDrive later, move them back – they'll re-upload.
Method 3: Mac – Use "Keep on this device" or move files
- Open Finder and go to the OneDrive folder (usually in the sidebar under "Favorites").
- Right-click the file or folder and select "Keep on this device" if available. This makes it local-only and removes it from the cloud.
- If that option isn't there, simply drag the files out of the OneDrive folder to another location on your Mac (e.g., Documents or Desktop).
- After moving, the files will be removed from OneDrive cloud storage after sync.
Method 4: OneDrive Website – Delete but keep a local copy
- Go to onedrive.com and sign in with your Microsoft account.
- Navigate to the file or folder you want to delete from the cloud.
- Select it and click "Delete" in the toolbar (or right-click and choose Delete).
- Confirm the deletion. The file is now in the OneDrive recycle bin.
- On your computer, if the file was synced, it will be moved to your PC's recycle bin as well – but only if you haven't already made it local-only. To keep it permanently on your PC, before deleting from the web, right-click the file in File Explorer and choose "Always keep on this device" (Windows) or "Keep on this device" (Mac). That ensures the local copy stays.
- If you deleted from the web and the file disappeared from your PC, restore it from your PC's recycle bin (not the OneDrive recycle bin) to get it back locally.
Common Mistakes
- Using "Free up space" on a file you want to keep locally: This actually does the opposite – it removes the local copy and keeps it only in the cloud. Make sure you use "Always keep on this device" instead.
- Deleting from the web without making it local-first: If the file is still marked as "online-only" or "cloud-only", deleting it from the web will also delete it from your computer (it goes to your PC's recycle bin). You can recover it, but it's a hassle.
- Moving files out of the OneDrive folder while OneDrive is paused: The sync might not recognize the move, leading to confusion. Ensure OneDrive is running.
- Assuming the recycle bin is permanent: Files in the OneDrive recycle bin are permanently deleted after 30 days. If you need them, recover them before that.
Tips
- Use "Always keep on this device" for files you want to access offline and keep permanently on your PC.
- Use "Free up space" for files you rarely need – it saves disk space while keeping them in the cloud.
- If you have a large OneDrive folder, you can select multiple files and apply the same action at once.
- Check your OneDrive storage usage after deleting to confirm the space is freed.
- On Windows, you can also change the default behavior for new files by going to OneDrive Settings > Account > Choose folders, but that affects syncing, not deletion.
Troubleshooting
If the file still appears in the cloud after you tried to delete it, or if it disappears from your PC when you didn't want it to, here's what to do:
- File still in cloud: Check if OneDrive is syncing. Look for the OneDrive icon in the system tray (Windows) or menu bar (Mac). If it shows an error, click it and select "Resume syncing" or restart OneDrive.
- File deleted from PC unintentionally: Open your PC's recycle bin (Windows) or Trash (Mac) and restore the file. It should come back to its original location.
- "Free up space" option is greyed out: This happens if the file is already online-only. To make it local again, right-click and choose "Always keep on this device".
- OneDrive not showing the option: Make sure you're using the latest version of OneDrive. Update it from the Microsoft Store (Windows) or the App Store (Mac).
- Files not syncing after move: Wait a few minutes – sync can be slow. If it doesn't update, restart OneDrive or sign out and back in.
Frequently Asked Questions
Will deleting from OneDrive delete the file from my computer?
Only if the file is marked as "online-only" and you delete it from the web or from File Explorer. If you use "Always keep on this device" first, the local copy stays.
What's the difference between "Free up space" and "Always keep on this device"?
"Free up space" removes the local copy and keeps only the cloud version. "Always keep on this device" does the opposite – it downloads the file and keeps it locally, and removes it from the cloud after sync.
Can I delete a folder from OneDrive but keep it on my PC?
Yes. Use the same methods – right-click the folder and choose "Always keep on this device" (Windows) or "Keep on this device" (Mac), or move the entire folder out of the OneDrive folder.
How do I know if a file is online-only or local?
In File Explorer (Windows) or Finder (Mac), look at the status icons. A cloud icon means online-only, a green checkmark means available locally, and a white checkmark with a green border means "always keep on this device".
If I delete from the web, can I still access the file on my PC?
Yes, if the file was set to "Always keep on this device" before deletion. Otherwise, it will be removed from your PC too, but you can restore it from your PC's recycle bin.
Does this affect other devices?
Yes. If you delete a file from the cloud, it will be removed from all devices that sync that folder, unless those devices have a local copy that is not synced (which is rare). To avoid that, use the "Keep on this device" method on each device you want to retain the file.