diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py
index bc9a695c6b40a8970fd25bb19bb4e4e05fa80c36..e8cc222c1eae8d42a8616c75619e7d0c7d347275 100644
--- a/product/ERP5Subversion/Tool/SubversionTool.py
+++ b/product/ERP5Subversion/Tool/SubversionTool.py
@@ -1058,7 +1058,11 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
       # Security hole fix
       raise SubversionSecurityError, 'You are not allowed to delete these files'
     for file_path in path_list:
-      shutil.rmtree(self._getWorkingPath(file_path))
+      real_path = self._getWorkingPath(file_path)
+      if os.path.isdir(real_path):
+        shutil.rmtree(self._getWorkingPath(file_path))
+      elif os.path.isfile(real_path):
+        os.remove(real_path)
     
   def getModifiedTree(self, business_template, show_unmodified=False) :
     """ Return tree of files returned by svn status