Added recursive delete function to delete items down the tree.