Deleting Safely: Remove-Item, -WhatIf and -Confirm

Remove-Item deletes files and folders with no Recycle Bin to catch them, so you rehearse a delete with -WhatIf, approve each item with -Confirm, and add -Recurse only for a folder you've looked inside.

Updated

Cheat sheet for the lesson Deleting Safely: Remove-Item, -WhatIf and -Confirm: Remove-Item deletes files and folders with no Recycle Bin to catch them, so you rehearse a delete with -WhatIf, approve each item with -Confirm, and add -Recurse only for a folder you've looked inside.
Category
PowerShell
Level
Novice
Tags
operating-system, powershell, recycle-bin, remove-item, whatif-and-confirm