What Happens When You Delete a File from OneDrive
In this article
When you delete a file from OneDrive, it is moved to the OneDrive recycle bin, not erased immediately. The file stays there for up to 30 days (or 93 days for work or school accounts) before permanent deletion. On a synced PC, deleting a file in File Explorer also removes it from the cloud and other synced devices, but you can restore it from the recycle bin. The exact behavior depends on where you delete it, your account type, and your sync settings.
What You'll Need
- A Microsoft account signed in to OneDrive (personal, work, or school).
- Access to the OneDrive website or the OneDrive app on your device.
- For synced PCs: the OneDrive sync client installed and running.
Step-by-Step
- Delete the file from OneDrive online. Sign in at onedrive.live.com (or your organization's OneDrive site), find the file, right-click it, and choose Delete. The file moves to the recycle bin. On mobile, tap the three-dot menu next to the file and select Delete. Labels may differ slightly by version or region.
- Delete from File Explorer on a synced PC. The file goes to both the local Recycle Bin and the OneDrive recycle bin. If you use Free up space (Files On-Demand), the file may be online-only; deleting it still removes it from the cloud.
- Check the OneDrive recycle bin. On the OneDrive website, click Recycle bin in the left pane. On mobile, go to Me > Recycle bin (or similar). Here you see deleted files and folders. Personal accounts keep items for 30 days; work or school accounts for 93 days. After that, they are permanently deleted.
- Restore a file if needed. In the recycle bin, select the file and click Restore. It returns to its original location. If the original folder was also deleted, restoring the file may recreate the folder path.
- Empty the recycle bin to delete permanently. In the recycle bin, click Empty recycle bin (or select items and choose Delete). This permanently removes the files; they cannot be restored from OneDrive afterward. On a PC, emptying the local Recycle Bin does not affect the OneDrive recycle bin; they are separate.
- Understand second-stage recycle bin (work or school). For Microsoft 365 work or school accounts, items deleted from the first-stage recycle bin go to a second-stage recycle bin, accessible only by an administrator, for the remainder of the 93-day period. Personal accounts do not have this.
- Check other devices. After deletion, OneDrive syncs the change to all signed-in devices. If a device is offline, the file remains locally until it reconnects and syncs. To avoid accidental deletion on other devices, ensure sync is working and check the recycle bin before emptying.
Common Mistakes
- Assuming deletion is permanent. Files stay in the recycle bin for 30 days (personal) or 93 days (work/school). You can usually recover them.
- Confusing local Recycle Bin with OneDrive recycle bin. Deleting a synced file sends it to both, but emptying one does not empty the other. Restore from the correct bin.
- Deleting a shared file. If you delete a file you shared, it is removed for everyone with access. The owner can restore it from their recycle bin, but collaborators lose access until then.
- Ignoring sync status. Deleting a file while offline may not sync immediately; the file could reappear when you reconnect if the deletion was not uploaded.
- Forgetting about version history. Deleting a file removes all versions. If you need an older version, restore the file first, then use version history.
Tips
- Before deleting, consider moving the file to an archive folder instead; it stays out of the way but remains recoverable without using the recycle bin.
- Use the OneDrive website to manage the recycle bin; it shows all deleted items across devices.
- For work or school accounts, contact your administrator if you need to restore from the second-stage recycle bin.
- Regularly review the recycle bin to free up space; items count toward your storage quota until permanently deleted.
- Enable Files On-Demand to save local space without deleting cloud files.
Troubleshooting
- File not in recycle bin? It may have been permanently deleted (e.g., recycle bin emptied) or deleted from a location not synced to OneDrive. Check the local Recycle Bin on your PC. For work or school accounts, ask your admin about the second-stage recycle bin.
- Restore option grayed out? The item may have exceeded the retention period or you lack permissions. Ensure you are signed in with the account that owns the file.
- Deleted file reappears? Sync conflict: another device may have re-uploaded it. Check sync status and pause sync if needed, then delete again.
- Cannot delete a file? It may be open in another app or marked read-only. Close the app or check permissions.
- Recycle bin missing? On some mobile apps, the recycle bin is under Me or Account. If not visible, use the website.
Frequently Asked Questions
How long does OneDrive keep deleted files?
Personal accounts: 30 days. Work or school accounts: 93 days. After that, files are permanently deleted.
Can I recover a file after emptying the recycle bin?
No, once the recycle bin is emptied, files cannot be restored from OneDrive. Check your local Recycle Bin or contact support for work/school accounts.
Does deleting a file from OneDrive delete it from my PC?
If the file is synced, deleting it from OneDrive online removes it from your PC and other synced devices. If you delete it locally, it is removed from the cloud too.
What happens to shared files when I delete them?
They are removed for everyone. The owner can restore from their recycle bin, but collaborators lose access until restored.
Do deleted files count toward my storage quota?
Yes, files in the recycle bin count toward your storage until permanently deleted.
Can I delete a file permanently without using the recycle bin?
Yes, select the file and press Shift+Delete (on Windows) to bypass the local Recycle Bin, but it still goes to the OneDrive recycle bin. To skip that, you must empty the OneDrive recycle bin after deletion.