Should be pretty easy to build yourself.

You can use ‘get-childitem’ to gather the files and you can exclude file types

Get-ChildItem D:\Temp\ -Recurse -Exclude *.html,*.xml

from there you use ‘remove-item’

Give it a try.

if you get stuck, feel free to post the code you have tried. Test it on a test folder first.

If you post code, please use the ‘Insert Code’ button. Please and thank you!

3 Spice ups