@Override
	public void preHook(WorkflowContext context) throws HyscaleException {
		if (context.getAppName() != null && context.getAttribute(WorkflowConstants.CLEAN_UP_APP_DIR) != null
				&& context.getAttribute(WorkflowConstants.CLEAN_UP_APP_DIR).equals(true)) {
			String appDir = setupConfig.getAppsDir() + context.getAppName();
			HyscaleFilesUtil.deleteDirectory(appDir);
			logger.debug("Cleaning up app dir in the apps");
		}
	}
Hook to clean apps directory to remove files no longer required
workflow-controller/controller-service/src/main/java/io/hyscale/controller/hooks/AppDirCleanUpHook.java