Last active
September 28, 2023 14:36
-
-
Save DEARaison/01025dde4f8042956e4d668829d703aa to your computer and use it in GitHub Desktop.
Remove Item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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