$RootFolder = "C:\Users\mrsal\Downloads\Animon\assets\cobblemon\sounds\pokemon"

if (!(Test-Path $RootFolder)) {
    Write-Host "Folder not found: $RootFolder"
    pause
    exit
}

$ambientFiles = Get-ChildItem -Path $RootFolder -Recurse -File -Filter "*_ambient.ogg"

Write-Host "Ambient files found: $($ambientFiles.Count)"

foreach ($file in $ambientFiles) {
    Write-Host "Deleting: $($file.FullName)"
    Remove-Item -Path $file.FullName -Force
}

Write-Host "Finished removing all _ambient.ogg files."
pause