Right-click the tree you want to collapse.
On the shortcut menu, click Collapse All.
Collapse All command