Hi, @Ximing Feng
1.Why/How are those folders generated?
The Wsusscan.cab file come with every new security release, the files contains metadata from the following classifications: security updates, update rollups, and service packs. These files usually should be automatically deleted after an update is completed, but some installation error during the update might prevent that.
2.How can I remove the folders
You could delete these files by taking the ownership of that folder.
https://www.windowscentral.com/how-take-ownership-files-and-folders-windows-10
Please note that it’s safer to let the Disk Cleanup tool do these cleanings for you, this avoids accidentally deleting files that you need, and don't forget to make a system backup.
3.Is there anything that I can do to prevent this kind of folders to be created?
Based on my research, I’m afraid these isn’t a direct way to prevent this, You could perform Disk Cleanup to remove these files after a successful update.
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Best regards.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
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.