I am trying to delete temporary asp.net files from C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files and some folders get deleted but for some folders I have to open each folder and then delete them . Have set the property of folder as NOT READ ONLY but still some files do not get deleted. It is very time consuming. Is there any property I can set which can help me delete all the files/folders at once? Thanks in advance
51 Answer
(IF you running on IIS local) Just Stop IIS service, then you can delete all folders.
Stop IIS -> CMD -> iisreset /stop; Start IIS -> CMD -> iisreset /start;
(IF you running on IISEXPRESS) Close the iisexpress service, delete folders then running it back.