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.