Friday, October 07, 2022

delete files with name in subfolder

Powershell script to delete all unnecessary files under the folders.


PS C:\User\admin\Get-ChildItem "d:\downloads" -recurse | where {$_.name -match "RARBG_DO_NOT_MIRROR.exe"} | % {remove-item $_.fullname -force}

No comments: