logo
search
OneDrive File Issues

Fix Old Local Files Showing as Online-Only in OneDrive

Nimra MalikNimra Malik Oct 10, 2026 868 views

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.

How to Fix Old Local Files Showing as Online-Only in OneDrive
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.
Before you start

Ensure that both computers are logged into the exact same Microsoft account and verify your current file structure on OneDrive.com before making changes.

Solution 1Recommended

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.

1
Open OneDrive Settings

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'.

2
Unlink Your PC

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.

3
Sign In and Relink

After OneDrive unlinks, the setup screen will appear. Sign in again using your Microsoft account credentials.

4
Choose Sync Folders

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.

Unlink and Relink Your PC to OneDrive
Cloud Data is Safe: Unlinking your PC does not delete your files from OneDrive. They remain completely safe on the cloud servers and will be accessible once relinked.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your computer.
  2. 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. 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.
Built-in WPS Cloud storage for reliable, conflict-free document synchronization.Fully compatible with Microsoft Office formats, including DOCX, XLSX, and PPTX.Lightweight architecture that uses minimal system resources compared to traditional Office suites.Familiar, tabbed user interface that makes transitioning easy with zero learning curve.
microsoft office alternative - wps office

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.