A red circle with a white X on a file or folder in Windows 11 is OneDrive telling you that item cannot sync, so the X goes away once you fix the reason OneDrive gives for it: select the OneDrive cloud icon on the taskbar, read the error listed for that file, and rename, shorten, close or make room as it asks. A red X on a drive under This PC is different: it means a mapped network drive is not connected right now.
This covers Windows 11 with the OneDrive app that comes with it, for personal, work and school accounts. The same OneDrive steps work on Windows 10, which reached end of support on October 14, 2025.
Which red X are you looking at?
Windows itself does not put a red X on ordinary files. The mark almost always comes from one of two places, and the fix depends on which one:
| Where the red X appears | What it means | Where to fix it |
|---|---|---|
| On a file or folder in the OneDrive folder, on the Desktop, or in Documents or Pictures (a red circle with a white cross in the Status column or on the icon) | That item cannot be synced to OneDrive | The OneDrive activity panel, then the file itself |
| On the OneDrive cloud icon near the clock | At least one item is not syncing | The same OneDrive panel |
| On a drive letter under This PC, such as Z: | A mapped network drive is not connected | The other computer or network storage box, or the drive mapping |
A red X on files that seem to live on your own Desktop is common and confusing. If OneDrive folder backup is turned on, your Desktop, Documents and Pictures folders actually sit inside OneDrive, so their files get OneDrive status icons too. The guide on how to back up your folders to OneDrive in Windows 11 explains how that backup moves those folders and how to check it.
The red X is not a sign that the file is gone or damaged. The copy on your PC is usually still there and opens normally; it just has not reached the cloud, so other devices do not see your latest changes. Microsoft lists every status mark on its page explaining what the OneDrive icons mean.

Find out why OneDrive cannot sync the file
OneDrive records a reason for every item it cannot sync. Reading it first saves you from trying fixes that do not apply.
- Find the OneDrive cloud icon at the right end of the taskbar. If you do not see it, select the small up arrow next to the clock to show hidden icons.
- Select the cloud icon. The OneDrive panel (Microsoft calls it the activity center) opens above the taskbar.
- Look at the top of the panel for a sync problem message, and select it if it is collapsed. Each problem item shows the file name and a short reason, such as a name that is not allowed or a path that is too long.
- Use the button offered next to the item when there is one. For a path that is too long, for example, OneDrive offers Shorten path and Move file (or Move folder).

If the cloud icon is gray with a line through it, OneDrive is not signed in, and nothing will sync until you open OneDrive from Start and sign in. If the icon shows a pause symbol, select it, select More and then Resume syncing.
If OneDrive does not appear on the taskbar at all, open Start, type OneDrive and select the app. When it starts, the status marks on your files update within a few minutes.
Fix the reason OneDrive gives
Most red X items fall into one of these groups. Fix the item, then give OneDrive a minute: the red X changes to a syncing mark and then to a cloud or a green check mark.

The file name has a character or word OneDrive does not allow
OneDrive cannot sync names that contain any of these characters: " * : < > ? / \ |. It also refuses some names entirely, including desktop.ini, .lock, CON, PRN, AUX, NUL, COM0 to COM9 and LPT0 to LPT9, any name that contains _vti_, and names that start with ~$ (the hidden temporary files Office creates while a document is open). Names cannot start or end with a space either.
To fix it, select the file in File Explorer, press F2, type a new name without those characters, and press Enter. Files that start with ~$ usually disappear on their own when you close the Office document they belong to.
The path is too long
The path is every folder name plus the file name added together, for example C:\Users\Maria\OneDrive\Clients\2026\Spring project\Final drafts\Budget review v3.xlsx. Deeply nested folders with long names can push a file over the limit.
- In the OneDrive panel, select Shorten path next to the item.
- Rename the file or one of the folders in the window that opens. The message at the bottom shows how many characters too long the path still is.
- When it reads Path is short enough to sync, select Save changes.

You can also select Move file or Move folder and pick a folder closer to the top of your OneDrive. If several items have the problem, Fix paths handles them together, and fixing a parent folder clears the files inside it. Microsoft walks through this in its guide to fixing paths that are too long to sync.
The file is open in another app
A file that is open and locked by a program (a large Excel workbook, a database, a video project) may not upload until it is closed. Save your work, close the program, and the X usually clears on the next sync.
The file is too large, or your storage is full
OneDrive syncs individual files up to 250 GB. A larger file stays marked until you move it out of OneDrive or split it.
Storage is the more common problem. If your Microsoft account is over its storage limit, OneDrive cannot upload, edit or sync new files, and the panel shows a warning that your account is nearly full or full. Free up space by deleting files you no longer need from OneDrive (and emptying the OneDrive recycle bin on the website), stop syncing large folders, or add storage to your plan. Backing up the Desktop, Documents and Pictures folders is often what pushes a free account over its limit.
OneDrive is not signed in or the account needs attention
A gray cloud with a line means you are signed out. A different red “no entry” style icon means the account is blocked; sign in at onedrive.com to see the message Microsoft shows for your account.
Restart OneDrive, then relink it
If the panel shows no clear reason, or the X stays after you fixed the item, restart the app before trying anything bigger.
- Right-click the OneDrive cloud icon on the taskbar.
- Select Pause syncing, then Quit OneDrive, and confirm. The cloud icon disappears.
- Open Start, type OneDrive and select the app. OneDrive starts and rescans your files.

Restarting the whole PC does the same thing and also clears a stuck File Explorer. If only the icons look wrong after a fix, press Ctrl + Shift + Esc, find Windows Explorer under Processes, select it and choose Restart. The taskbar blinks out for a moment and the icons are redrawn.
If the red X is still there, unlink and relink the PC. Your files stay in the cloud and on the PC.
- Select the OneDrive cloud icon, then the Help and Settings gear, then Settings.
- Open the Account tab and select Unlink this PC, then Unlink account.
- Open OneDrive from Start and sign in with the same account.
- When OneDrive says the folder already exists, select Use this folder so it reuses your existing files instead of downloading everything again.

Microsoft’s Fix OneDrive sync problems page covers the same unlink steps, plus checking that you can open your files at onedrive.com. If you are trying to stop OneDrive rather than fix it, the guide on how to disable OneDrive without uninstalling it explains pausing, quitting and turning off startup.
Reset OneDrive as the last OneDrive fix
A reset clears OneDrive’s local sync data and settings and builds them again, which fixes problems a restart does not. Microsoft states that you do not lose files or data by resetting OneDrive. Before you start, know what changes: every OneDrive account on this PC is disconnected, OneDrive runs a full sync afterward (which can take a while with many files), and if you had chosen to sync only some folders you have to choose them again.
- Press Windows + R to open the Run box.
- Paste
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand select OK. - If Windows says it cannot find the file, try
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset, thenC:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset. - Wait a minute or two. If the cloud icon does not come back, open Start, type OneDrive and select the app.

Microsoft’s Reset OneDrive page lists the same three commands. For more on what a reset deletes and how it differs from freeing disk space, see how to clear the OneDrive cache in Windows 11.
Clear the red X from a network drive
A mapped drive is a drive letter, such as Z:, that points to a shared folder on another computer or a network storage box (NAS). When Windows cannot reach that folder, File Explorer shows a red X on the drive and the net use command lists it as Unavailable, as Microsoft’s article on mapped drives that fail to reconnect describes. You often also see a “Could not reconnect all network drives” notice after you sign in.
Work through these in order:
- Open the drive. Double-click it in This PC. If the other computer is on and reachable, Windows connects and the X clears. A drive can show the X after sign-in even though nothing is wrong, if the network was not ready when Windows tried to reconnect it.
- Check the other end. Make sure the computer or NAS is turned on and on the same network, and connect to your VPN first if the share is at work.
- Check your account. If Windows asks for a password, use the account for that computer or NAS, which is often not your own Windows sign-in.
- Remove a mapping you no longer use. Open Command Prompt and run
net use Z: /delete, replacing Z: with the drive letter. This removes only the letter from your PC; nothing in the shared folder is deleted.

To map it again with the right path and the Reconnect at sign-in option, follow the guide on how to map a drive in Windows, which covers both Windows 10 and Windows 11.
Fixes to skip
A few fixes repeated around the web either do not touch the cause or carry risk:
- Deleting icon cache files. The red X is a real status, not a damaged picture. Rebuilding the icon cache only redraws icons, so the X comes back if the sync problem is still there. Microsoft does not document it as a OneDrive fix.
- Running chkdsk or disk repair. Disk errors do not produce OneDrive or network drive marks. Run disk checks only for a real disk problem.
- Turning off antivirus. Security software can occasionally interfere with OneDrive, but the fix is to update it, not to switch protection off.
- Moving everything out of OneDrive. It removes the X because the files no longer sync, but it also stops them being backed up. Do it only if that is what you want.
Check that it worked
Open the folder that had the problem and look at the Status column in Details view (View > Details in File Explorer). Each item should show one of OneDrive’s normal marks: a blue cloud (online only), a green check mark (on this PC), or a solid green circle with a white check (always kept on this PC). The cloud icon on the taskbar should show no warning, and the OneDrive panel should list no sync problems. For a network drive, the drive under This PC shows its normal icon and opens without an error.
Red X Questions
Will the red X delete my file?
No. The mark means OneDrive has not uploaded the latest version. The copy on your PC stays where it is. The risk is the opposite one: until it syncs, the cloud copy and your other devices do not have your latest changes, so fix it before you rely on OneDrive as a backup.
Some files disappeared after I fixed the sync. Where did they go?
Check the Recycle Bin on the PC first, then the recycle bin on the OneDrive website (sign in at onedrive.com and select Recycle bin). Microsoft keeps deleted items there for 30 days on personal accounts and 93 days on work or school accounts unless an administrator changed it, as its page on how to restore deleted files in OneDrive explains. For files that are in neither place, the guide on how to recover permanently deleted files covers File History and other options.
Why does the red X keep coming back on the same file?
Something keeps recreating the condition. A program might be saving temporary files with blocked names into a synced folder, a project folder might be nested so deeply that new files keep crossing the path limit, or your storage might be right at its limit. Read the reason in the OneDrive panel each time; if it is the same reason, move that folder outside OneDrive or shorten the folder structure.
Is a red X the same as the padlock or the person icon?
No. A padlock next to the status means a setting prevents that item from syncing, and the person icon means the file or folder is shared with other people. Neither one is an error in the same way, and neither needs the fixes above.
Why do my Desktop files have a red X when I never set up OneDrive?
OneDrive folder backup may have been turned on when the PC was set up or when you signed in with a Microsoft account, which moves the Desktop, Documents and Pictures folders into OneDrive. Select the cloud icon, open Help and Settings > Settings, and look at the Sync and back up tab to see which folders are backed up. Fix the sync problem, or stop backing up a folder if you do not want it in the cloud.