Created
June 3, 2019 20:01
-
-
Save Douile/3fdf43c1e4e563b53390f20b43340f2b to your computer and use it in GitHub Desktop.
Delete latent community server maps
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
$prefixes = @("surf_","bhop_","am_") | |
$csgodir = 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\maps' | |
foreach($prefix in $prefixes) { | |
Write-Output "Deleting $prefix maps..." | |
Get-ChildItem $csgodir -Filter ([regex]::escape($prefix) + "*") -File | Remove-Item | |
} | |
Write-Output "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment