Skip to content

Instantly share code, notes, and snippets.

@fuhoi
Created May 8, 2015 08:52
Show Gist options
  • Save fuhoi/251da481648a247c5b96 to your computer and use it in GitHub Desktop.
Save fuhoi/251da481648a247c5b96 to your computer and use it in GitHub Desktop.
Get-ChildItem -Recurse . | where { $_.PSISContainer -and @( $_ | Get-ChildItem ).Count -eq 0 } | Remove-Item -force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment