Replying to: Giors Geks
You cant remove multiple suffixes If you have file test.txt.log you can’t rename it to test.txt but in PowerSehll you can delete in all subdirectories Get-Childitem -recurse * -include *.txt.txt | Rename-Item -NewName $_.name -replace "txt.txt","txt"