The folders C:\Windows\Logs\WinREAgent and C:\Windows\Logs\mosetup have mysteriously deleted items, but the folders themselves are still there. Why?

林宗昇 8,360 Reputation points
2026-08-05T10:08:50.7+00:00

On my laptop, the contents of the C:\Windows\Logs\WinREAgent and C:\Windows\Logs\mosetup folders were inexplicably deleted at 4:20 pm today, but the folders are still there. Why didn’t I delete these two manually? why?

螢幕擷取畫面 2026-08-05 165616

螢幕擷取畫面 2026-08-05 165731

I used the following commands in cmd:

del /q /f /s %temp%*

del /q /f /s C:\Windows\Temp*

to clean up these

I'm really worried about system problems, or issues with Windows Update. Is it related to updating KB5101684, and what are the post-update mechanisms?

Windows for home | Windows 11 | Windows update
0 comments No comments

Answer accepted by question author
EmilyS726 266.8K Reputation points Independent Advisor
2026-08-05T10:47:10.1633333+00:00

Hello,

These are diagnostic log folders, not locations containing essential Windows system files.

The most likely explanation is that Windows completed an update or maintenance operation and removed temporary diagnostic files afterward. The folders remain because Windows may reuse them during a future update or recover. The screenshots alone cannot identify exactly which process performed the cleanup, but empty folders do not indicate system corruption.

KB5101684 is an optional preview cumulative update.. It also includes servicing stack update KB5101711. Microsoft currently reports no known issues involving these folders or their logs.

Regarding those del commands, your commands did not specifically target C:\Windows\Logs, but I would not recommend against using them again.

The /s switch performs recursive deletion, /q suppresses confirmation, and the paths are missing a backslash before the wildcard. Microsoft recommends being very careful with wildcards and testing the same pattern with dir before using del. I am familiar with your computer history based on the questions you asked here. I really ask that you try not to run these commands.

Use Settings > System > Storage > Temporary files or Storage Sense instead. Windows can safely identify unnecessary temporary files through those options.

To confirm everything is working, open Command Prompt as administrator and run:

reagentc /info

Make sure Windows RE status shows Enabled. Also check Settings > Windows Update > Update history and confirm that KB5101684 installed successfully. Microsoft documents reagentc /info as the appropriate command for checking the WinRE configuration.

If Windows Update shows successful and WinRE is enabled, no repair is needed.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.