is there a way to remove the accidentals in the second bar in Dorico SE in the example shown?
As far as I know, the accidentals only apply up to the end of the bar and could be omitted in the next bar.
You can change the Notation Options>Cautionary Accidentals settings to suit your preferences. Normal convention is for cautionary accidentals to be shown in the following bar (Personally I like them in parentheses) , but if you don’t want them, just turn them off.
You can also, on a per note basis hide the accidental in the properties panel in the lower zone.
Dorico SE doesn’t include Notation Options – you need at least Dorico Elements to access these options.
You can, however, override the visibility of an individual accidental via the Properties panel.