A quick powershell function to use Robocopy to delete a full directory.

Deleting folders using Robocopy is a quicker, more robust method of deleting directories. It can also deal with the ‘path too long’ issue encountered by File Explorer’s directory deletion.

https://gist.github.com/chris-bradbury/f354fa8e84d272ab1c039ad5c3d9ffc5

Usage

RoboDelete -Path <path-to-folder>
Categories: Powershell

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *