final bar deletion

How can I get rid of bar 95 (and beyond) ?

Shift-B -1 didn’t work.

Shift B fin didn’t work.

Write menu > Trim flow?

See Can't delete last bar of flow - Dorico - Steinberg Forums

Go to the score layout, not a part layout, and ensure that no instrument (not just piano) has any sort of dynamic overhanging that barline. Then use the shift-b popover or Trim flow

Oh, and -1 won’t work if you’ve got more than 1 bar after bar 95. If the score goes up to 105, for example, you’ll need -10.