Multi steps form - Delete progression when hitting previous button

Hello,

So here our situation.

We have a multiple steps form that is kinda a questionnaire with multiple choices and conditions that have prices on each step and a total price that is incremented with the selected options.

So if a user finally chose to back and take another option, the options already picked stays. So the total price come wrong at the end.

Therefore, is there a way if a user back to a previous step to delete the progression that has been made before?

Thanks.