Reset Solver in Julia

I am trying to do a sensitivity analysis study using Julia and Gurobi as the solver. In doing the sensitivity analysis simulation, I am changing the coefficient of one of the optimization variables, building the model and getting the solution. This procedure is then repeated with a different value for the coefficient. So basically, I have written a script which calls a function to perform the optimization in a loop using Visual Studio Code. I have noticed that I am getting some weird results, in that if I run the simulation in a loop I get different results compared to if I were to manually change the coefficient, run the simulation, get the results, close VS code and then reopen VS code and rerun with a different coefficient value. Not sure if the previous solution produced by the solver is affecting the solution produced. Is there anyway to reset the solution produced by the solver or some way of getting the same effect of closing and reopening VS code.