False alert: There are too many files in this directory

AJedynak 0 Reputation points
2026-10-09T15:13:35.3866667+00:00

I just moved a lot of files (400GB) out of Onedrive and now The folder I moved out is bizarrely causing an PC alert error saying I have too many files in that directory (which no longer exists in onedrive. It used to have a lot of Lightroom photos in it and I never got an alert like this Now that the folder is not even there I want you guys to clear this error. Why the error is there in the first place is crazy - we use Onedrive to store files like photos and we should be able to store as much as we want so long as we are not going over our quota. So two concerns: I have zero files in a nonexistent folder that is giving me an error about too many files in it, And you guys shouldn't keep me from storing things like my photo directories by saying there are too many files If I'm not going over my quota.

Microsoft 365 and Office | OneDrive | Other | Windows
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-10-09T15:13:51.9566667+00:00

    A stale OneDrive sync state can keep showing a folder-related alert even after the folder was moved out of OneDrive. The supported steps in this situation are:

    1. Verify the folder is no longer inside the local OneDrive folder in File Explorer.
      • If the folder is outside the OneDrive folder structure, it is no longer part of OneDrive sync.
    2. Pause and resume OneDrive sync.
      • Select the white or blue OneDrive cloud icon in the notification area.
      • Select More > Pause syncing... and choose 2, 8, or 24 hours.
      • Select More again > Resume syncing.
      • This can help clear stuck processing states.
    3. Check the total file count in OneDrive on the PC.
      • Open File Explorer.
      • Right-click the OneDrive folder and select Properties.
      • If Contains is more than 300,000 files, reduce the number of files in OneDrive. Removing shortcut folders or stopping sync for SharePoint libraries can also help.
    4. If the alert is tied to a folder that was deselected from sync and now says it already exists, use one of the supported workarounds:
      • Delete it from the PC. This is safe if the content is still available in OneDrive online.
      • Or move the folder outside the PC’s OneDrive folder to remove it from OneDrive and keep it only on the PC.
    5. If duplicate or stale sync metadata is involved, clear the local OneDrive pre-sign-in settings file:
      • Press Windows key + R.
      • Enter %localappdata%\Microsoft\OneDrive\settings and select OK.
      • Delete PreSignInSettingsConfig.json.
      • Then restart OneDrive.
      • If that does not resolve it, uninstall and reinstall OneDrive.

    About the file-count concern: OneDrive guidance states that if there are more than 300,000 files, sync can take a long time and reducing the number of files is recommended. That is separate from storage quota.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. AJedynak 0 Reputation points
    2026-10-09T15:15:20.61+00:00

    None of that helped.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.