Helping millions of people navigate the world of technology.

3 Ways to Stop OneDrive From Deleting Files Automatically on Windows 11

Quick Tips
  • Open Windows Settings and go to System > Storage > turn off the toggle for Storage Sense.
  • Launch Command Prompt with administrator privileges and use it to reset the OneDrive app. Then, check again.
  • Unlink and relink OneDrive from your Windows PC to resolve faulty or incomplete drive sync issues.

Basic Fixes:

  • Check for Windows updates: An out-of-date Windows version can also cause issues, such as OneDrive moving files to the recycle bin by itself. So, install the latest software updates for Windows 11. Then, restart OneDrive and check again.
  • Reinstall OneDrive: If OneDrive keeps deleting files from your desktop, uninstall OneDrive on your Windows 11 device. Once done, reinstall OneDrive to get rid of unwanted settings or features causing this issue.

Fix 1: Turn off Storage Sense on Windows

Windows Storage Sense tracks the storage space available on your device. Once this space runs low, it deletes temporary files automatically. This can also be why OneDrive files keep getting deleted from your desktop. To stop this, turn off Storage Sense on Windows. Here’s how.

Step 1: Use the Windows + I key to open Settings. From the menu options, click on System > Storage.

Click on System & click on Storage

Step 2: Turn off the Storage Sense toggle.

Turn off the toggle for Storage Sense

Also Read: How to fix OneDrive not showing up in File Explorer on Windows

If OneDrive accidentally deletes files from your computer due to sync issues, you can unlink the account. Then, link it back again and establish a new connection, resolving any issues that might have occurred previously. Here’s how to do it.

Step 1: Go to the Windows taskbar > click on the OneDrive icon. Then, click on the cogwheel icon > select Settings.

Open OneDrive & click on Settings

Step 2: From the menu options, click on Account > Unlink this PC.

Go to Account & click on Unlink this PC

Step 3: Here, click on Unlink account.

Click on Unlink account

Step 4: Now, restart OneDrive and enter your registered email ID to re-link the account. Once done, click on Sign in.

Enter your email ID & click on Sign in

Step 5: Enter the Microsoft account password > click on Sign in. Finish signing in and check OneDrive to see if any files are missing.

Enter your password & click on Sign in

Fix 3: Use Command Prompt to Reset OneDrive

If OneDrive is automatically deleting files due to a setting or error, resetting the OneDrive app might help fix it. It can also help fix other issues caused by a corrupt cache or bad update. Follow the below steps to reset OneDrive using Command Prompt.

Step 1: Open the Command Prompt with administrator privileges on Windows 11. When prompted, click on Yes.

Step 2: Now, enter the following command and press enter to execute it.

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
Enter the command and press enter

Wait for OneDrive to reset. Then, open OneDrive and observe if more files are missing.

Was this helpful?

Thanks for your feedback!

Last updated on 17 May, 2024

Leave a Reply

Your email address will not be published. Required fields are marked *

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.