Monday 5 October 2020

Windows 10: Is it safe to remove $Windows.~WS folder in C:\ drive [answered]

I recently saved over 3GB of disk space by safely removing the $Windows folder 
Details below.

Here's a lovely windows 10 image from panos@unsplash. Thank you





$Windows.~WS folder in C:\ drive after Windows 10 Installation, Upgrade or Media Creation?


To delete, create the following batch file on your desktop and right click run as administrator.

@delete_WS.bat
@echo off
@echo "This will delete the folder C:\$Windows.~WS and C:\$Windows.~BT after an update to reclaim space. Windows 10 only."
@echo --------------------------------
@echo If you get message "The system cannot find the file specified" it means the folder is already deleted.
@echo --------------------------------
PAUSE
RD /S /Q "C:\$Windows.~WS"
RD /S /Q "C:\$Windows.~BT"
@echo --------------------------------
@echo All done
@echo --------------------------------
PAUSE NULL 


Original source: