The trim tool is used to “cut off” excess lines within a sketch and can be found within the sketch tools toolbar.
When you want to trim multiple elements using the trim tool remember to select the “Trim All Elements” toggle rather than the “Trim First Element” toggle.
The difference is shown below.
Trim all elements:
Trim first element: