Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Created July 26, 2016 20:35
Show Gist options
  • Select an option

  • Save christopherbauer/97bd0d55c0abb6942fbb06cb996550cb to your computer and use it in GitHub Desktop.

Select an option

Save christopherbauer/97bd0d55c0abb6942fbb06cb996550cb to your computer and use it in GitHub Desktop.
param (
[string] $dir
)
cd $dir
Get-ChildItem -File | Remove-Item
Get-ChildItem -Directory | ForEach-Object { C:\Scripts\Delete-Recursive "$(Get-Location)\$_" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment