How to Fix OneDrive Error 0x8007016A When Deleting an Old Folder
Question details
The user is trying to delete an old OneDrive directory left behind after an account removal but cannot proceed due to a cloud provider error.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to delete a legacy OneDrive folder after the associated work or personal account has been removed from the system.
- Observed behavior
- The system prevents the deletion or opening of any files inside the folder, displaying the message: 'Error 0x8007016A: The cloud file provider is not running.'
Verify whether the files in the old folder are marked with a cloud icon indicating they are 'online-only', and ensure you still have the login credentials for the old Microsoft account in case you need to temporarily sign back in.
Start OneDrive and Unlink the Old Account
Use this solution to clear background synchronization issues by ensuring the old account is properly detached from the OneDrive client.
Often, the folder remains locked because the OneDrive application is either not running in the background or still retains partial sync settings for the removed account. Launching the actual application (rather than just opening the folder) allows you to properly unlink it.
Click the Windows Start menu, type 'OneDrive', and select the OneDrive app from the search results to start the sync client.
Click the OneDrive cloud icon in the Windows system tray (bottom right corner of the taskbar), click the 'Help & Settings' gear icon, and select 'Settings'.
Navigate to the 'Account' tab. If you see the old work or personal account still listed, click 'Unlink this PC'. After unlinking, restart your computer and attempt to delete the folder again.

Reconnect and Make Files Available Locally
Use this method if the files inside the folder are 'online-only' and require the sync engine to download them before they can be deleted.
Experience Hassle-Free Document Management with WPS Office
If OneDrive sync issues and cloud provider errors are disrupting your workflow, consider switching to WPS Office. As a lightweight and powerful suite, it offers built-in, reliable cloud synchronization (WPS Cloud) and complete compatibility with your existing Microsoft Office files—without the frustrating sync lockouts.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the quick on-screen instructions to set up the software.
- 3. Save and Sync: Open any existing document and easily save it to the integrated WPS Cloud for secure, accessible storage.

Frequently Asked Questions
What does Error 0x8007016A mean?
This error means 'The cloud file provider is not running.' It occurs when Windows attempts to access, move, or delete a file that is stored in the cloud (online-only), but the OneDrive sync application is currently closed, paused, or malfunctioning.
Can I force delete the OneDrive folder using Command Prompt?
Yes, you can use Command Prompt as an Administrator and execute the 'rmdir /s /q' command targeting the folder path. However, if the files are online-only ghost files, Command Prompt may also throw an access error until the files are downloaded locally or the sync client is restarted.
Why does the OneDrive app not show up in my Start menu search?
If only the file folder appears in your Start menu search, the actual OneDrive application executable (OneDrive.exe) may have been uninstalled or corrupted. Reinstalling OneDrive from the Microsoft website will restore the app and allow you to fix the synchronization error.




