       @deleteTree(false)
 
 
-  deleteTree : (notify, id, deleteBranchesAndComments) ->
+  deleteTree : (notify, id, deleteBranchesAndComments, informServer) ->
 
     if notify
       if confirm("Do you really want to delete the whole tree?")
-        @reallyDeleteTree(id, deleteBranchesAndComments)
+        @reallyDeleteTree(id, deleteBranchesAndComments, informServer)
       else
         return
     else
-      @reallyDeleteTree(id, deleteBranchesAndComments)
-
-
-  reallyDeleteTree : (id, deleteBranchesAndComments = true) ->
+      @reallyDeleteTree(id, deleteBranchesAndComments, informServer)
+
+
+  reallyDeleteTree : (id, deleteBranchesAndComments = true, informServer = true) ->
 
     unless id
       id = @activeTree.treeId


        @trigger("mergeTree", lastTree.treeId, lastNode, @activeNode)

        #@deleteTree(false, lastTree.treeId, false)

        @setActiveNode(activeNodeID)
      else

        @deleteComment(node.id)
        @deleteBranch(node)

    if informServer
      @stateLogger.deleteTree(tree)
    @trigger("deleteTree", index)
    
    # Because we always want an active tree, check if we need
