We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 245c578 commit 5dbe443Copy full SHA for 5dbe443
General/Files/DeleteThatAnnoyingFile.ps1
@@ -0,0 +1,5 @@
1
+# Script to search for and delete a named file in structure
2
+$files = ls -Path . -Filter "annoying.txt" -Recurse -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName
3
+ForEach ($item in $files) {
4
+Remove-Item -force -path $item
5
+}
0 commit comments