Skip to content

Instantly share code, notes, and snippets.

@DEARaison
Last active September 28, 2023 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DEARaison/01025dde4f8042956e4d668829d703aa to your computer and use it in GitHub Desktop.
Save DEARaison/01025dde4f8042956e4d668829d703aa to your computer and use it in GitHub Desktop.
Remove Item
$locationToRemove = Get-Item -Path ""
Get-ChildItem -Path $locationToRemove -Force | ForEach-Object {
Remove-Item -Force -Recurse -Path $_.FullName
"Removed $_"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment