How to Fix OneDrive Automatically Moving New Files to the Recycle Bin
Question details
Users experience an issue where newly created files and folders are automatically moved to the recycle bin by OneDrive shortly after creation.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Syncing newly created desktop folders and files to OneDrive on a Windows laptop.
- Observed behavior
- OneDrive syncs the newly created items and then automatically moves them to the local and web recycle bin after a few minutes, requiring manual restoration.
Ensure you temporarily pause OneDrive syncing from the system tray icon to prevent any more newly created files from being moved to the recycle bin while you troubleshoot.
Disable Windows Storage Sense and Reset OneDrive
Windows Storage Sense can automatically clean up files to free up space, and a corrupted OneDrive cache can cause aggressive deletion behavior. Disabling the feature and resetting the app often resolves this issue.
Windows Storage Sense is designed to optimize local storage by automatically removing older files or making synced files online-only. Sometimes, it malfunctions and targets newly created files. Additionally, resetting the OneDrive client forces it to rebuild its sync cache, which clears up unexplainable deletion loops.
Click the Windows Start menu, open 'Settings', navigate to 'System', and click on 'Storage'. If 'Storage Sense' is turned on, toggle it to the 'Off' position to prevent automatic file cleanup.
Press the Windows key + R simultaneously on your keyboard to open the Run dialog box.
Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset into the Run window and press Enter. The OneDrive cloud icon in your taskbar will disappear and reappear after a minute or two.
If the OneDrive icon does not reappear after a few minutes, open the Start menu, type 'OneDrive', and click on the app to launch it again.

Verify Antivirus and Synchronization Conflicts
Overly aggressive antivirus software or conflicting organizational policies on recently reset operating systems might be targeting newly created synced folders.
Experience Reliable File Management with WPS Office
While you troubleshoot Microsoft OneDrive sync issues, you need a stable and reliable office suite to manage your local and cloud documents safely. WPS Office is a lightweight, fully compatible alternative to Microsoft Office that offers seamless integration with various cloud drives, ensuring your work remains secure.
- 1. Download WPS Office: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the Application: Run the downloaded installer file and follow the straightforward on-screen instructions to set up the suite.
- 3. Connect to Cloud Storage: Open WPS Office, navigate to the 'Open' menu, and sign in to your preferred cloud storage service to securely manage your files directly from the app.

Frequently Asked Questions
Why is OneDrive deleting files from my hard drive automatically?
This usually happens due to Windows Storage Sense aggressively attempting to free up local space, conflicts from third-party antivirus software quarantining new files, or a corrupted OneDrive synchronization cache that misinterprets new files as items needing deletion.
How do I recover files that OneDrive automatically deleted?
Log in to the OneDrive website using your web browser, navigate to the Recycle Bin on the left sidebar, select the automatically deleted files or folders, and click 'Restore' to return them to their original local and cloud locations.
Can reinstalling Windows cause OneDrive sync issues?
Yes, if a laptop's operating system was recently reinstalled and reconnected to an existing OneDrive account, the app might experience synchronization conflicts between the old cloud state and the new local environment. Resetting the OneDrive app usually resolves this mismatch.




