Execute a Groovy script before a build is deleted. You can use an 'ARTIFACTS' list variable. For instance ARTIFACTS.each{ new File(it.remotePath).delete()}