You see a red X icon on your OneDrive files, but double-clicking them opens the file without any error. This mismatch between the icon and actual behavior is confusing and makes you question whether your files are syncing correctly. The red X typically indicates a sync conflict or a file that cannot sync, yet the file opens fine because it is already stored locally. This article explains why this specific scenario occurs and provides targeted steps to clear the red X without affecting your local copies.
Key Takeaways: Fixing the Red X Icon on Files That Open Normally
- OneDrive sync status icon logic: The red X means OneDrive cannot sync the file, not that the file is damaged or inaccessible.
- Pause and resume sync: Forces OneDrive to re-evaluate the file state and clear stale red X icons.
- Reset OneDrive app: Clears the local sync database and re-registers the client, fixing persistent icon errors.
Why OneDrive Shows a Red X on Files That Open Normally
OneDrive for Business uses a set of overlay icons in File Explorer to communicate the sync status of each file and folder. A green check mark means the file is synced and available. A blue cloud icon means the file is online-only. A solid green circle with a white check means the file is always kept on this device. The red X icon, however, indicates that OneDrive has detected a problem with syncing that specific item.
The most common root cause is a sync conflict that has been resolved automatically or manually but the icon cache has not refreshed. For example, if you edit a file on your work computer while the same file is also open in a web browser, OneDrive may flag a conflict. After you choose to keep both versions, the conflict is resolved, but the icon may remain as a red X until the sync engine processes the change. Another cause is a temporary network interruption that prevented OneDrive from uploading a small metadata change, such as a file rename or tag update. The file itself is fully synced locally, so it opens normally. The red X is simply a leftover indicator from a sync attempt that failed and was not retried.
Common Triggers for Stale Red X Icons
Several specific actions can leave a red X on a file that otherwise works:
- Editing a file on two devices at nearly the same time, creating a sync conflict that OneDrive resolved by keeping both versions.
- Moving or renaming a file while it is still uploading, causing the sync engine to lose track of the item.
- Opening a file from a shared folder that has sync permissions changed after the file was already downloaded locally.
- Antivirus software locking a file during a scan, which OneDrive interprets as a sync failure.
Steps to Remove the Red X Icon Without Losing File Access
The following methods are ordered from least invasive to most comprehensive. Start with Method 1 and proceed only if the red X persists.
Method 1: Pause and Resume OneDrive Sync
- Open the OneDrive activity center
Right-click the OneDrive cloud icon in the system tray area near the clock. If you do not see it, click the upward arrow to show hidden icons. Select Help & Settings from the menu. - Pause syncing
In the menu that appears, choose Pause syncing. Select 2 hours from the submenu. This stops all sync activity for two hours. - Resume syncing
After pausing, right-click the OneDrive icon again and select Resume syncing. OneDrive will re-evaluate the status of all files and refresh the icons. The red X should disappear within 30 seconds.
Method 2: Clear the Sync Conflict Using the OneDrive Website
- Sign in to OneDrive online
Open a browser and go to https://portal.office.com/onedrive. Sign in with your work or school account. - Navigate to the affected file
Browse to the folder that contains the file showing the red X. Look for a file with a name like filename (yourname’s conflicted copy). This is the conflict copy that OneDrive created. - Delete or merge the conflict copy
If you do not need the conflicted copy, select it and click Delete at the top of the page. If you need its content, open both versions, merge changes into the original, then delete the conflict copy. After deletion, return to File Explorer. The red X should clear within a minute.
Method 3: Reset the OneDrive App
- Close OneDrive completely
Right-click the OneDrive cloud icon in the system tray and select Help & Settings > Exit. Confirm that you want to close OneDrive. - Open the Run dialog
Press Windows key + R on your keyboard. - Run the reset command
Type the following command and press Enter:%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
If you are using OneDrive from the Microsoft Store, use this command instead:%localappdata%\Microsoft\OneDrive\Update\OneDriveSetup.exe /reset - Wait for OneDrive to restart
A command prompt window will flash briefly. OneDrive will automatically restart after the reset is complete. This process can take up to two minutes. Do not open OneDrive manually during this time. - Check the file icon
After OneDrive restarts, navigate to the file that previously showed the red X. The icon should now display the correct sync status.
If the Red X Still Appears After the Main Fix
OneDrive Shows a Red X on All Files in a Folder
When every file in a folder shows a red X, the issue is likely a folder-level sync problem rather than a file-level conflict. The most common cause is that the folder has been moved or renamed on the server side while OneDrive is still tracking the old path. To fix this, right-click the folder in File Explorer, select OneDrive > View online. In the browser, check if the folder exists at the expected location. If it is missing, use the OneDrive web interface to restore it from the recycle bin. Then, in File Explorer, right-click the folder and select OneDrive > Sync to re-link it.
Red X Appears on New Files You Just Created
If a newly created file immediately shows a red X, OneDrive cannot upload it due to a file name restriction. OneDrive does not sync files with names containing certain characters: the backslash (\), forward slash (/), colon (:), asterisk (), question mark (?), quotation marks (“), less than (<), greater than (>), or pipe (|). Rename the file to remove these characters. The red X should clear within 30 seconds after renaming.
Red X Appears After Antivirus Software Update
Some antivirus programs, especially those with real-time file scanning, can lock files temporarily. OneDrive interprets the lock as a sync failure and shows a red X. To confirm this is the cause, temporarily disable real-time scanning for one minute and see if the red X clears. If it does, add the OneDrive folder to your antivirus exclusion list. The typical path to exclude is C:\Users\YourUsername\OneDrive - CompanyName.
OneDrive Sync Status Icons: What Each Icon Means
| Icon | Meaning | Action Required |
|---|---|---|
| Blue cloud | Online-only file | No action needed; file downloads on demand |
| Green check mark | File is synced and available | No action needed |
| Solid green circle with white check | Always keep on this device | No action needed; file is always local |
| Red X | Sync failure or conflict | Use methods above to resolve |
| Yellow triangle with exclamation | File is in a warning state | Check OneDrive activity center for details |
You can now identify and clear a red X icon on files that open normally. Start with the pause and resume method, which resolves most cases without any data loss. If the icon persists, check for sync conflicts on the OneDrive website or reset the OneDrive app. For future prevention, avoid editing the same file on two devices simultaneously, and always wait for a file upload to complete before renaming or moving it.