How do I move a file to the Recycle Bin using PowerShell?

2017 answer: use the Recycle module

Install-Module -Name Recycle

Then run:

Remove-ItemSafely file

I like to make an alias called trash for this.

Leave a Comment