Skip to content

Commit

Permalink
Create delete-bin-obj.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
skoc10 committed Apr 4, 2023
1 parent 5934a48 commit b6ae7e7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions delete-bin-obj.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Clear-Host

Write-Host "Deleting all BIN and OBJ folders..." -ForegroundColor Cyan

Get-ChildItem -Path . -Include bin,obj -Recurse -Directory | ForEach-Object {
if ($_.FullName -notmatch "\\node_modules\\") {
Write-Host "Deleting:" $_.FullName -ForegroundColor Yellow
Remove-Item $_.FullName -Recurse -Force
} else {
Write-Host "Skipping:" $_.FullName -ForegroundColor Magenta
}
}

Write-Host "BIN and OBJ folders have been successfully deleted." -ForegroundColor Green

0 comments on commit b6ae7e7

Please sign in to comment.