Remove Red X Icon on Files in Windows 11
In this article
The red X icon on files in Windows 11 usually means the file is not synced with OneDrive, often due to a sync error or the file being excluded from sync. To remove it, you can pause and resume OneDrive sync, check the sync status, or move the file to a synced folder.
What the Red X Icon Means
In Windows 11, the red X overlay on a file or folder icon is the OneDrive sync status indicator. It appears when OneDrive cannot sync the item, commonly because of a conflict, a file name issue, or a sync error. This is different from the green checkmark (synced) or the blue cloud icon (online-only). The red X does not indicate a problem with the file itself; it only reflects the sync state.
How to Remove the Red X Icon
Follow these steps in order, as the simplest fix often resolves the issue:
- Pause and resume OneDrive sync: Right-click the OneDrive cloud icon in the system tray (bottom-right near the clock), select "Pause syncing" (choose 2 hours or 8 hours), wait a few seconds, then right-click again and select "Resume syncing." This forces OneDrive to re-evaluate all files and often clears temporary errors.
- Check the sync status: Right-click the file with the red X, select "View online" (if available) or open OneDrive from the system tray. Look for any error message like "Sync pending" or "Can't upload." If the file is open in another program, close it and see if the icon changes.
- Move the file out and back: Cut the file to your desktop, wait a few seconds, then move it back into the OneDrive folder. This resets the sync state for that item.
- Restart OneDrive: Right-click the OneDrive icon in the system tray, select "Settings" (or the gear icon), then "Exit." Relaunch OneDrive from the Start menu. This clears most sync glitches.
- Reset OneDrive if the issue persists: Press Win + R, type
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter. Wait a minute for OneDrive to restart. This resets the sync client without deleting your files.
Common Causes of the Red X
The red X usually appears for one of these reasons:
- File name issues: Windows and OneDrive have restrictions on certain characters (like
\ / : * ? " < > |) and reserved names (like CON, PRN). If the file name contains these, sync fails. - File size or path length: OneDrive has a 250 GB file size limit and a 400-character path limit. If exceeded, sync stops.
- File in use: If a program (like Word or Excel) has the file open, OneDrive may show a red X until the file is closed.
- Sync conflicts: When the same file is edited on two devices, a conflict copy is created, and the original may show a red X.
- Network or server issues: Temporary internet problems or OneDrive service outages can cause sync errors.
How to Prevent the Red X from Reappearing
To avoid the red X in the future:
- Keep file names short and avoid special characters.
- Store files in the OneDrive folder, not on the desktop or elsewhere (unless you sync those locations).
- Close files before shutting down or switching devices.
- Ensure your internet connection is stable.
- Regularly check OneDrive settings to confirm which folders are set to sync.
What If the Red X Is Not from OneDrive?
While OneDrive is the most common cause, a red X can also appear due to antivirus software (like a file that was blocked) or a corrupted icon cache. To check if it's OneDrive, right-click the file and look for OneDrive options like "Share" or "View online." If those are missing, the file is not in a OneDrive folder. In that case, try clearing the icon cache: open Command Prompt as administrator, type ie4uinit.exe -show and press Enter, or restart Windows Explorer from Task Manager. This refreshes all icons.
Frequently Asked Questions
Will deleting the file remove the red X?
No, deleting the file removes the file itself, not just the icon. The red X will disappear because the file is gone, but that's not a solution if you need the file. Instead, fix the sync issue as described above.
Does the red X mean my file is corrupted?
No, the red X only indicates a sync problem. The file on your disk is usually fine. You can open it normally, and the data is intact. Once sync is restored, the icon will change to a green checkmark.
Why does the red X appear on folders, not just files?
Folders can also have sync issues, often because a file inside them has a problem. The red X on a folder means that at least one item within it is not syncing. Fix the underlying file, and the folder icon will clear.
Can I disable OneDrive to get rid of the red X?
Yes, if you don't use OneDrive, you can unlink or uninstall it. Right-click the OneDrive icon, go to Settings, then Account, and select "Unlink this PC." This stops sync and removes the status icons. However, your files will remain on your computer, but they will no longer be backed up to the cloud.
Is the red X the same as the grey X?
No, a grey X usually means the file is excluded from sync (e.g., you made it online-only but it's not available offline). A red X means an active sync error. The fixes are different: for grey X, right-click and select "Always keep on this device."