The expand/collapse all button is displayed on a Letters screen (i.e. on a property, tenancy, applicant or contact record) where documents are grouped into categories
From Letters screen:
In the Existing letters and files panel on right, click icon top left to collapse all categories
Click again to expand all categories
Tip
The individual arrow icons can still be used to expand/collapse individual categories