OneDrive deleting files automatically: why it happens
OneDrive usually isn’t deleting files at random. Missing files are most often caused by sync from another device, Files On-Demand, PC folder backup changes, a different Microsoft account, or a delete that synced from a shared folder or another device. Pause sync, check OneDrive online and the recycle bin first, then restore the file from the right place before you change any settings.
Before you start
This applies to OneDrive for Windows and Microsoft 365 accounts on Windows 10 and Windows 11, including personal, work, and school accounts.
You do not need Administrator rights for the first checks or for restoring from the web recycle bin or version history. You may need admin or Microsoft 365 admin help for organization-level recycle bins, retention, or shared library recovery.
No restart is required at the start. A backup is not required for the first checks, but if you still have a copy of the file on another device, copy it somewhere safe before you try more changes.
Safe checks to do first:
- Pause syncing in the OneDrive desktop app.
- Confirm whether the file is missing on OneDrive on the web, on the PC, or both.
Symptom
Files are missing, moved to the recycle bin, or disappearing after syncSymptom
This usually shows up when you open OneDrive on the PC, refresh File Explorer, or sign in on another device and notice that a file or folder is gone, online-only, or no longer in the same place.
What to check first when files seem to vanish
Start by checking where the file is missing: OneDrive on the web, the local OneDrive folder on your PC, or both. That tells you whether you’re dealing with a cloud deletion, a local sync issue, or a file that is still in OneDrive but not stored locally.
- Pause syncing in the OneDrive desktop app so nothing else changes while you look.
- Open OneDrive online in a browser and look for the file there.
- Check the local OneDrive folder on the PC where you first noticed the loss.
- If the file exists online but not on the PC, the problem is local sync, Files On-Demand, or selective sync.
- If it’s missing online too, treat it as a deletion that may have synced everywhere.
If the file has a cloud icon or appears as a placeholder on the PC, Files On-Demand may be showing a file that is not fully stored locally. If the file is missing from both places, skip guesswork and move straight to recovery.
Why OneDrive can delete or hide files you didn’t touch
OneDrive usually reflects a change that happened somewhere else. If a file disappears, these are the common causes:
- Another synced device deleted the same file, and OneDrive carried that deletion everywhere.
- Files On-Demand left only a placeholder on the PC, so the file looks missing locally even though it may still be in the cloud.
- PC folder backup was turned on or off for Desktop, Documents, or Pictures, which can move files into or out of OneDrive-backed folders.
- You signed into a different Microsoft account or work/school account, so you’re looking at a different OneDrive.
- Selective sync excluded a folder, so it no longer appears on this device.
- A storage limit, subscription issue, or account problem interrupted sync and made files appear to vanish or stop updating.
- A shared folder owner or another member removed the file from the shared location.
A useful way to think about it: OneDrive is usually not inventing a deletion. It is syncing a change that happened somewhere, or showing a folder differently because a setting changed.
How to get the missing file back safely
Work from the safest recovery path first, and keep sync paused until you know where the file is.
- Open OneDrive and pause syncing.
- Check OneDrive on the web and open the recycle bin there.
- Restore the file if you find it.
- If this is a work or school file, check the Microsoft 365 recycle bin or your organization’s retention options if your admin provides them.
- If the file was changed rather than deleted, open version history and restore a previous version.
- After recovery, resume sync and wait for OneDrive to settle before you make more edits.
If the file was deleted from OneDrive, the OneDrive recycle bin is usually the first place to look. If it was deleted from a SharePoint-backed library or a shared Microsoft 365 location, the recycle bin attached to that library or site may matter more than the personal OneDrive recycle bin. If you restore the wrong version, version history lets you step back without changing the whole folder.
If you can still see the file on another device, copy it to a safe place before you do anything else. That gives you a fallback if the synced copy changes again.
What to do if the file keeps disappearing after it’s restored
If a file comes back and then vanishes again, the deletion source is still active. The next step is to find which device or setting is repeating the change.
Check these places in order:
- Other PCs, phones, or tablets signed into the same OneDrive account.
- Shared folders or shared libraries where someone else may have delete permission.
- Cleanup tools, backup utilities, or scripts that remove files from synced folders.
- The OneDrive recycle bin again, to see whether the same item keeps reappearing there.
- PC folder backup settings, especially if Desktop, Documents, or Pictures are involved.
If another device is the source, open OneDrive there and compare the folder contents before you make changes. If a shared folder is involved, check who has edit access and whether the file lives in a location that multiple people can change. If a cleanup tool is involved, stop it before you restore the file again, or you may just repeat the cycle.
If the file keeps disappearing, don’t keep restoring it blindly. Find the source first, or the next sync can remove it again.
How to tell whether this is OneDrive sync or a Windows folder problem
A simple example helps here. Say a file disappears from your Desktop after you enabled PC folder backup. That is often not a true deletion; it may now be in the OneDrive-backed Desktop folder, which means the local and cloud views are tied together. If you delete it from one place, it can disappear from the other.
Use this distinction:
- Missing only on the PC, but still visible on OneDrive online: local sync, Files On-Demand, or selective sync is likely.
- Missing on the PC and online: the file was probably deleted or moved in a synced location.
- Still present in File Explorer but not in OneDrive online: the file may be outside the synced path, or you may be in the wrong account.
A folder can also look empty if you’re viewing the wrong OneDrive profile in File Explorer. Check the account name in the OneDrive settings and compare it with the account shown on the web. If they do not match, you may be troubleshooting the wrong storage location.
If the problem appears on one PC but not another, that points to a local sync, selective sync, or account mismatch issue. If the same delete shows up everywhere, another device or shared location is more likely the source.
Settings that can make this happen again
Once the file is back, review the settings that most often cause repeat surprises.
- Open OneDrive settings and check PC folder backup for Desktop, Documents, and Pictures.
- Confirm whether those folders should be backed up at all.
- Review Files On-Demand so you know which files are local and which are online-only.
- Check selective sync so important folders are actually included on this device.
- Review shared folder permissions if other people can edit or delete the file.
- Check your OneDrive storage status and any account alerts.
OneDrive cloud icon > Settings > Sync and backupSettings path
If PC folder backup is on, files may move into OneDrive-managed folders and disappear from the original local path. If Files On-Demand is on, a file can be present in the cloud but not stored locally until you open it. If selective sync is wrong, a folder may simply not exist on that device even though it still exists online.
Also check whether you are saving important files in shared locations where someone else can remove them. Shared access is useful, but it also means another person’s delete action can become your missing file.
For shared folders, make sure you know whether the folder is owned by you or by someone else. If the owner removes the file or changes access, your local view can change the next time sync runs.
When the problem is bigger than one file
If whole folders are missing or a lot of files disappeared at once, treat it like a wider sync or account issue, not a single-file mistake.
Start by checking whether the same loss appears on another device signed into the same account. If it does, the deletion likely synced across devices. If it does not, the issue may be local to one PC, one profile, or one folder backup configuration.
Then check:
- OneDrive on the web for the full folder tree.
- The recycle bin for a group of deleted items.
- Shared libraries or team sites, if the content lived in Microsoft 365 storage.
- Activity or audit information if your Microsoft 365 setup exposes it.
If many files were removed and you cannot explain why, act quickly. The longer you wait, the more likely a second sync or another user action will overwrite the trail you need to recover them. If this is a work account and the missing files matter to a team, contact your Microsoft 365 admin or support path as soon as possible.
Verify
After you restore the file, confirm three things:
- The file appears on OneDrive on the web.
- The file appears in the local folder on the PC you use.
- The file stays put after you resume sync and let OneDrive finish updating.
If the file shows up online but not locally, Files On-Demand, selective sync, or a local profile issue is still in play. If it shows up locally but not online, you may be in the wrong account or the folder may not be syncing. If it disappears again after sync resumes, the source deletion is still active.
Questions people usually ask after the first scare
Does OneDrive ever delete files by itself? Usually no. What looks like automatic deletion is normally a sync of something that happened elsewhere, a folder backup change, or a sign-in/account mismatch.
Is emptying the recycle bin permanent? Usually yes for normal self-service recovery. Once the recycle bin is emptied, recovery becomes much harder and may depend on retention policies, backups, or admin tools.
If I delete a file locally, does it delete in the cloud too? If that folder is synced, yes, that local delete can sync to OneDrive. That’s why it helps to pause syncing before you clean up a folder you’re worried about.
Why do files disappear from Desktop after backup is turned on? Because Desktop may now be the OneDrive-backed Desktop folder rather than only a local Windows folder, so changes in one place affect the other.
How do I know whether I’m in the wrong account? Compare the account name in OneDrive settings with the account shown on the web. If they are different, you may be looking at a different OneDrive.
Conclusion
Once the file is back, turn sync back on and watch for it to reappear in OneDrive online and in File Explorer. If it disappears again, stop and check the other device, shared folder, or backup setting that is still making the change.
Frequently Asked Questions
Does OneDrive ever delete files by itself?
Usually no. What looks like automatic deletion is normally a sync of something that happened elsewhere, a folder backup change, or a sign-in/account mismatch.
Is emptying the recycle bin permanent?
Usually yes for normal self-service recovery. Once the recycle bin is emptied, recovery becomes much harder and may depend on retention policies, backups, or admin tools.
If I delete a file locally, does it delete in the cloud too?
If that folder is synced, yes, that local delete can sync to OneDrive. That’s why it helps to pause syncing before you clean up a folder you’re worried about.
Why do files disappear from Desktop after backup is turned on?
Because Desktop may now be the OneDrive-backed Desktop folder rather than only a local Windows folder, so changes in one place affect the other.
How do I know whether I’m in the wrong account?
Compare the account name in OneDrive settings with the account shown on the web. If they are different, you may be looking at a different OneDrive.