// if we are managing the full deploy dir, completely purge the deployment directory.
// otherwise, just report that we deleted what we were responsible for.
if (manageAllDeployDir) {
FileUtil.purge(deployDir, true);
if (!deployDir.exists()) {
bundleManagerProvider.auditDeployment(deploymentToPurge, "Purge",
"The destination directory has been purged", AUDIT_MESSAGE, SUCCESS, "Directory purged: "
+ deployDirAbsolutePath, null);
} else {
bundleManagerProvider.auditDeployment(deploymentToPurge, "Purge",
"The destination directory failed to be purged", AUDIT_MESSAGE, FAILURE,