I'd like to clear the log folder in my web-application that always has the same path to directory. The only thing that changes is the principal folder name for different websites.
How can I delete the contents of folder
logs where folder
logs is located at
C:\Inetpub\websites\XYZ\Portals\Logs where XYZ is variable for all folders inside the
Ideally a script could be run on-demand and I could add it to windows scheduler to run on an automated basis.
Any examples would be highly appreciated.