Windows 11 25H2: Files inside C:\Windows\Logs\WinREAgent and C:\Windows\Logs\mosetup were unexpectedly deleted

林宗昇 8,060 Reputation points
2026-08-05T11:20:56.1866667+00:00

My question:

https://learn.microsoft.com/en-au/answers/questions/5966970/the-folders-c-windowslogswinreagent-and-c-windowsl

Please omit the forward slashes when describing the problem.

This caused misunderstanding among netizens. sorry

The commands I used this morning were correct:

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

These are absolutely safe and were not deleted from the system.

Hello Microsoft Community,

I noticed a strange behavior on my Windows 11 25H2 laptop today.

At around 4:20 PM, I found that the contents inside these two folders were unexpectedly removed:

C:\Windows\Logs\WinREAgent
C:\Windows\Logs\mosetup

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

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

The folders themselves still exist, but the files and subfolders inside them are missing.

I did not manually delete these folders or files.

Before this happened, I only ran the following commands to clean temporary files:

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

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

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

I only intended to clean temporary files and did not access or modify Windows Logs folders.

My concern is whether this behavior is related to:

  • Windows Update maintenance tasks
  • Windows 11 update mechanisms
  • The recently installed update KB5101684
  • Automatic cleanup of Windows installation/recovery logs

Could deleting these log files affect:

  • Future Windows Update installation?
  • Windows Recovery Environment (WinRE)?
  • Upgrade or rollback troubleshooting?
  • System stability?

System information:

  • Windows 11 25H2
  • Update installed: KB5101684
  • Device: Laptop

Could someone please confirm whether this is expected Windows behavior or if there is a possible issue after installing KB5101684?

Thank you.

Windows for home | Windows 11 | Files, folders, and storage
0 comments No comments

Answer accepted by question author
Carl-L 19,665 Reputation points Microsoft External Staff Moderator
2026-08-06T06:24:37.6433333+00:00

Hello 林宗昇,

Welcome to Microsoft Q&A forum.

I understand your confusion when the logs on the folders are gone. However, you can rest assured that is not because of your commands, those commands cannot remove from these folders.

Also, the automatic cleanup for these files is also normal behavior. These files are purely logs and only provide temporary diagnostic data. Windows will periodically clean them up to save storage space. So it is normal when you see the logs are gone but the folder remains. As they are logs, they won't affect your future Windows Update or WinRE environment. I hope this clarifies.


If the answer is helpful, please click "Yes". If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

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.