Fix Old Local Files Showing as Online-Only in OneDrive
Question details
Old local files from an old laptop are appearing as online-only files on a desktop, and renamed or moved files are leaving behind ghost entries that do not disappear.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Synchronizing files across multiple computers using Microsoft OneDrive.
- Observed behavior
- Deleted, renamed, or moved files continue to display as online-only ghost files on the desktop computer, failing to accurately reflect the current folder structure even after signing out on the old laptop.
Ensure that both computers are logged into the exact same Microsoft account and verify your current file structure on OneDrive.com before making changes.
Unlink and Relink Your PC to OneDrive
Unlinking and relinking your PC forces OneDrive to refresh its connection to the cloud, clearing out outdated file entries and resolving sync discrepancies.
This process safely disconnects your computer from the cloud service and sets up a fresh synchronization path. It is the most effective way to eliminate ghost files that fail to update when moved or renamed.
Click or right-click the OneDrive cloud icon in the Windows system tray at the bottom right of your screen. Select 'Help & Settings', then click on 'Settings'.
Navigate to the 'Account' tab within the settings window. Click on the 'Unlink this PC' link and confirm your choice to sign out of the application.
After OneDrive unlinks, the setup screen will appear. Sign in again using your Microsoft account credentials.
During the setup process, click 'Choose folders' to carefully select only the specific folders you want to synchronize with this computer, ensuring old local folders are unchecked if no longer needed.

Reset the OneDrive Application
If relinking does not clear the online-only ghost files, performing a complete reset of the OneDrive app will clear the local cache and force a full synchronization restart.
Verify Folder Structure on OneDrive Web
Checking the web version confirms whether the file synchronization issue is a local cache problem on the desktop or if the ghost files actually exist in the cloud directory.
Try WPS Office for Seamless File Management and Cloud Sync
Tired of troubleshooting complex syncing errors and ghost files in Microsoft OneDrive? WPS Office offers a powerful, lightweight alternative with integrated WPS Cloud, ensuring your documents sync flawlessly across all devices. Enjoy a familiar all-in-one workspace that is completely compatible with your existing Office files.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your computer.
- 2. Sign In to WPS Cloud: Create or log into your WPS account to instantly activate your built-in cloud storage for seamless document syncing.
- 3. Manage Files Seamlessly: Open, edit, and save your Microsoft Office files directly within WPS Office, keeping your files perfectly synced across your PC, laptop, and mobile devices.

Frequently Asked Questions
Why do my deleted local files still show as online-only in OneDrive?
This occurs when the OneDrive application cache fails to update properly after files are modified or deleted on another synced device. The local directory retains the old file paths as 'ghost files'. Unlinking and relinking the PC forces a fresh sync to remove them.
Will running the reset command delete my stored OneDrive files?
No. Running the reset command or unlinking your PC only resets the local application's sync state and clears the local cache. Your actual documents and data remain safely stored on OneDrive's cloud servers.
How can I stop specific folders from syncing to my new computer?
You can manage folder sync preferences by opening OneDrive Settings, navigating to the 'Account' tab, and clicking 'Choose folders'. From there, uncheck any folders you want to keep strictly in the cloud and prevent from downloading to your local drive.




