Clarification: I omitted backslashes in my previous post, causing confusion

林宗昇 8,360 Reputation points
2026-08-06T05:50:18.3433333+00:00

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.

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

Answer accepted by question author
DaveM121 931.8K Reputation points Independent Advisor
2026-08-06T06:26:14.6833333+00:00

The commands you have run are correct, they will only clear out the contents of the two temporary folders on your drive and will not cause any problem on your PC.

For those two folders (C:\Windows\Logs\WinREAgent and C:\Windows\Logs\mosetup) those two folders are used by the Windows update process, Windows manages those folders and will dynamically add and remove data in those folders, that is normal, you never need to access those folders or clear out those folders yourself.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Oldest

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.