Previous question
https://learn.microsoft.com/en-au/answers/questions/5966970/the-folders-c-windowslogswinreagent-and-c-windowsl
I would like to clarify my previous post because I accidentally omitted the backslashes when typing the commands. This caused some confusion, and I apologize for that.
The commands I actually ran this morning were:
del /q /f /s %temp%\*
del /q /f /s C:\Windows\Temp\*
These are the exact commands I used to delete temporary files only. I did not delete any files from the Windows system folders or log folders.
My concern is unrelated to these commands themselves. The issue is that, at around 4:20 PM, I noticed that the contents of the following folders had disappeared unexpectedly:
C:\Windows\Logs\WinREAgent
C:\Windows\Logs\mosetup
The folders still exist, but the files and subfolders inside them are gone. I did not manually delete anything from these locations.
I am trying to determine whether this behavior is expected, such as Windows automatically cleaning up installation or recovery logs, or whether it could be related to Windows Update maintenance or another system process.
Thank you for your understanding, and I appreciate any insights.