updated role tree delete function