Handy utility jobs where Jenkins is used to perform
This Jenkins pipeline script uses Groovy to empty a given folder. This script was written for a Windows environment where Robocopy is used as the underlying tool to perform the actually deletion of the folders.