From 902a9c5b70aef32586f037a4b9be56e9538edab4 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Thu, 21 Aug 2014 18:00:32 -0700 Subject: [PATCH] CLOUDSTACK-7266: Deleting account is not cleaning the snapshot entries in secondary storage. --- .../storage/resource/NfsSecondaryStorageResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java index d8b19d3a4de..c0b4da07938 100755 --- a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java +++ b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java @@ -1525,7 +1525,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S private String deleteLocalFile(String fullPath) { Script command = new Script("/bin/bash", s_logger); command.add("-c"); - command.add("rm -f " + fullPath); + command.add("rm -rf " + fullPath); String result = command.execute(); if (result != null) { String errMsg = "Failed to delete file " + fullPath + ", err=" + result;