Powershell script

Long time back, had to delete tmp files recursively in folders and subfolders as it was taking lot of space. This simple one liner powershell script will do the job. As always, good to run in the test environment before running in production box. There should be many other ways to do same task.

get-childitem C:\test* -include *.tmp -recurse | remove-item

Leave a comment