How to: Use PowerShell to list and delete files under same folder but different path

e.g. List or delete all text (.txt) files from



To list all .txt files:
Get-ChildItem "C:\Users\*\Documents\Folder\*.txt"
*To test the delete procedure (run the command and show outputs without deleting any thing), confirm that the command is deleting correct files:
Get-ChildItem "C:\Users\*\Documents\Folder\*.txt" | Remove-Item -WhatIf
Finally, to run the command and delete files:
Remove-Item -path "C:\Users\*\Documents\Folder\*.txt"