implemented functionality to delete each tree if a references user is
getting deleted