Fix: OneDrive cannot remove file – error code 6009

Tashreef Shareef
by Tashreef Shareef
Windows & Software Expert
Loading Comments
Download PDF
Affiliate Disclosure

how to fix onedrive error code 6009

If you are trying to delete a file from the OneDrive folder, you may encounter the OneDrive cannot remove file – error code 6009 message. This message usually occurs if someone is editing the file you are trying to delete.

However, there can be other reasons for the issue as well. Several users have reported similar issues in the Microsoft Community forum. One user said:

I cannot delete a file. Its showing error 6009. I am the only user and i closed all ms/office apps, signed out of microsoft & restarted my pc — still unable to delete the file.

If you are also troubled by this error, here are a couple of troubleshooting tips to help you fix OneDrive cannot remove file error code 6009 successfully.

How do I fix OneDrive error code 6009?

1. Quit OneDrive

OneDrive cannot remove file error code 6009

  1. Quit OneDrive
  2. Click the small arrow icon on the Taskbar to show the hidden icon
  3. Right-click on the OneDrive icon
  4. Select the Close One Drive option
  5. Now try deleting the file and check if the error is resolved

2. Close MS Office processes

OneDrive cannot remove file error code 6009

  1. Check if other users in your organization have the file open and working on it.
    • If not, close all the Microsoft Office applications and reboot the computer.
  2. After the restart, try deleting the file and check for any improvements.

Windows won’t end a task in Task Manager? Count on us to solve the problem.


3. Boot into Safe Mode

OneDrive cannot remove file error code 6009

  1. Press Windows Key + R to open Run
  2. Type msconfig and click OK to open System Properties
  3. Select the Boot tab
  4. Under Boot Options, check the Safe Boot box
  5. Click Apply and OK to save the changes
  6. When the System Configuration prompts you to restart, click on Restart
  7. After the restart, open the folder and try to delete the OneDrive file
  8. To exit Safe Boot, open System Configuration again
  9. Uncheck the box Safe Boot box and click Apply

Safe mode is not working? Don’t panic, this guide will help you get past the booting problems.

4. Reset OneDrive

reset onedrive

 

  1. Click on Start and select Settings
  2. Go to Apps > Apps and Features
  3. Search for the OneDrive app
  4. Click on OneDrive and select Advanced Options
  5. Scroll down to the Reset section and click the Reset button
  6. Confirm the action and click on Reset again
  7. Reboot the computer and check for any improvements

If you’re having trouble opening the Setting app, take a look at this article to solve the issue.


Alternatively, you can also reset the OneDrive client by executing the following command:

OneDrive cannot remove file error code 6009

  1. Press Windows Key + R to open Run
  2. In the Run box type the following and click OK:
    %localappdata%MicrosoftOneDriveonedrive.exe /reset
  3. Once reset, reboot the computer and check for any improvements

If none of the above steps helped you, try updating OneDrive. You can do it by launching an Office app and then go to File > Account > Update Options.

Also, check for any pending Windows updates. If the issue persists, uninstall and reinstall the OneDrive app to fix the issues.

The OneDrive cannot remove file error code 6009 error occurs when you try to delete a file that is in use. Follow the steps in this article to end the process and delete the file successfully.

How you ever bumped into error code 6009 while using OneDrive? Tell us what method you used to get rid of it in the comment section below.

RELATED STORIES YOU MAY LIKE: