OneDrive Deleting Files Automatically? How to Stop It

Ensure your files are always synced to avoid this issue

Reading time icon 4 min. read


Readers help support Windows Report. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help Windows Report effortlessly and without spending any money. Read more

Key notes

  • OneDrive deleting files automatically can occur if your Windows is out of date.
  • Updating the OneDrive client is a great way to stop this issue from occurring on your PC.
OneDrive Deleting Files Automatically

Our readers complain about some of their files missing on OneDrive without having them deleted before that time. It is due to the general problem that OneDrive is deleting files automatically.

Speaking of OneDrive, our readers may be interested in our article about OneDrive Sign-in issue 0x8004e4be and how to resolve it.

If your files are being removed automatically by OneDrive, then be sure to keep reading to learn how to fix this issue.

Why does OneDrive delete files automatically?

A couple of factors can be responsible for OneDrive deleting files automatically. Some common ones are:

  • Outdated OneDrive client – Not installing the latest update to the OneDrive client can prevent it from fixing bugs affecting its processes. Hence, it can start deleting files due to the bugs compromising the current version.
  • Corrupt system files – Like other apps running on your PC, OneDrive has system files that attend to its needs and help it function. If these system files are corrupt, they can cause the client to delete or modify files automatically.
  • Outdated Windows OS – You can also encounter the OneDrive deleting file automatically issue if your Windows operating system isn’t running the latest build for fixing bugs and improving app performance. Also, installing a damaged update can cause the OneDrive issue.
  • Hard disk damaged sectors – Having issues with the hard disk partitions on your PC can cause the files to delete automatically, making OneDrive the culprit.
  • OneDrive folder sync issues – The files may be deleted during synchronization with the OneDrive cloud due to underlying issues affecting the data syncing process. 

Though these causes are liable to vary on different PCs, you can fix them by troubleshooting some settings. As we go further, we’ll take you through detailed steps to resolve the issue.

What can I do if OneDrive is deleting my files automatically?

1. Run the chkdsk command

  1. Left-click the Start button, type Command Prompt, and click the Run as administrator option.
  2. Click Yes on the User Account Control window.
  3. Type the following commands and press Enter: chkdsk C: /r chkdsk/f
  4. Restart your PC to see if OneDrive keeps deleting your files.

Running the Chkdsk command will scan the disk drives for bad sectors or partitions. It will fix the problems and prevent OneDrive from deleting the files.

Check our guide on what to do if Command Prompt keeps crashing on your PC.

2. Update the OneDrive client

  1. Left-click the Start button, type Remove in the search box, and click Add or remove programs from the search results.
  2. Scroll through the list of installed programs and select Microsoft OneDrive.
  3. Click on the Uninstall button and allow Windows to remove OneDrive.
  4. After the app uninstallation, go to the OneDrive download page and click Download.
  5. Log into your account and check if OneDrive deleting files automatically persists.

Updating the OneDrive client on your computer will install the latest patches and builds to help fix bugs and improve performance.

3. Update Windows Operating System

  1. Press Windows + I key to open the Windows Settings app.
  2. Click on the Windows Update option and click on Check for updates. If any updates are available, it will search for and install them.

Updating Windows OS will fix the bugs affecting your PC and the programs and add new features to improve its functionality.

Read about Windows not connecting to update service and how to fix it if the error occurs on your PC.

  1. Go to the System Tray on the desktop, right-click the OneDrive app icon, then click Help & Settings.
  2. Select Settings from the drop-down.
  3. Go to the Account tab, under the Add an Account section, then click Unlink this PC.
  4. Click on the Unlink account option to confirm the unlinking process.

Unlinking links on OneDrive will help it act independently without interference with the shared PC settings.

5. Reset OneDrive

  1. Left-click the Start button, type Command Prompt, and click the Run as administrator option.
  2. Click Yes on the User Account Control window.
  3. Type the following commands and press Enter: %localappdata%|Microsoft|OneDrive|onedrive.exe/reset
  4. The reset process can take a while. Afterward, wait for the re-syncing of all the data/files and then check if OneDrive is working fine.

Resetting OneDrive will clear underlying issues like corrupt installation files and others, causing it to delete files automatically.

In addition, you may be interested in our comprehensive article about how to fix the OneDrive error during shutdown on Windows 11.

Also, you can check our guide on ways to fix the OneDrive upload issues you can encounter when uploading files on OneDrive.

Should you have further questions or suggestions, kindly drop them in the comments section.

More about the topics: onedrive