diff --git a/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java b/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java index 08c54d6..7759b2d 100644 --- a/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java +++ b/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java @@ -164,6 +164,7 @@ public TerraformPlan getTerraformPlanFromDirectory(TerraformPlanFromDirectoryReq String moduleDirectory) { String result = executor.getTerraformPlanAsJson(request.getVariables(), request.getEnvVariables(), moduleDirectory); + deleteWorkspace(executor.getModuleFullPath(moduleDirectory)); return TerraformPlan.builder().plan(result).build(); }