Forum Discussion
Files stuck in sync. Can't delete. Error: 0x80070185
Error: 0x80070185 is linked to Microsoft OneDrive. So, we need to reset OneDrive and then restart it again. We only have two commands to enter in command prompt.
Follow the steps below to fix "Files stuck in sync. Can't delete. Error: 0x80070185"
- Right click Command Prompt and Run as administrator or press the Windows Key+ R to open the Run Window.
- In the Run Window, enter the following command: %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
- Press Enter.
- Now once it is reset, you need to restart OneDrive.
- To do that, copy the second command: %localappdata%\Microsoft\OneDrive\onedrive.exe
- Go to command prompt, right click as administrator, and you will paste it and press Enter.
- Once you do this, OneDrive will restart and it will now start syncing all your files and folders.
That is the first thing I ran into and tried. I just tried it again and it didn't work again.
- Muhammad_Ali_2003Apr 02, 2026Copper Contributor
1. To Stop OneDrive completely
Press Ctrl + Shift + Esc
Open Task Manager
Find Microsoft OneDrive
Click End task
2. Force delete the file
Press Windows + R, type cmd, press Enter
Run this command:
del /f /q "FULL FILE PATH"
If it’s a folder, run:
rmdir /s /q "FULL FOLDER PATH"
Important: Replace "FULL FILE PATH" with the actual file location.
You can get it by holding Shift + right-clicking the file → "Copy as path".
3. If deletion fails
Restart your PC in Safe Mode
Try deleting the file again
4. Rebuild OneDrive sync
Open OneDrive → Settings → Account
Click "Unlink this PC"
Sign in again