Skip to content

Instantly share code, notes, and snippets.

@whoo24
Created April 26, 2017 04:01
Show Gist options
  • Save whoo24/62612e4baa0800a3b27d5fb7e6bdfa77 to your computer and use it in GitHub Desktop.
Save whoo24/62612e4baa0800a3b27d5fb7e6bdfa77 to your computer and use it in GitHub Desktop.
$TargetDir = ""
$TargetFile = "*.txt"
Get-ChildItem $TargetDir -Include $TargetFile -Recurse | ForEach ($_) { Remove-Item $_.fullname }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment