Sometimes you run out of disk space on a PC or even a Server !!
Especially on the C drive this will become serious to keep everything running smoothly.
Apart from deleting the rubbish, you can follow this procedure to free up major disk space.
Follow this procedure to get rid of the C:\WINDOWS\SoftwareDistribution\Download
1. Is it safe to delete files Under C:\WINDOWS\SoftwareDistribution\Download
Yes, taken in account you follow these steps :
type cmd and press enter
type net stop wuauserv and press enter
type rename c:\windows\SoftwareDistribution Softwaredistribution.old and press enter
type net start wuauserv and press enter
type exit and press enter
Verify that the new software distribution folder created when you restart the update service. You will notice it will create the missing subfolders again and populate ONLY the downloads that you are missing and not the whole historical downloads.
Restart the computer and del the folder if you have no issues.
SD Downloads is auto cleaned after a couple of weeks.
Purging more often than that can be done by stopping the service, clearing the downloads dir, then restarting WAU.
This will save you a lot of Gb’s !!
2. Is it safe to delete the SxS folder
should not be purged entirely, but you can clean up older and duplicate cache files with DISM:
dism /online /cleanup-image /spsuperseded
Then, cleaning up temp spaces, such as with DiskCleanup helps.