Title: Trim a tree