I am sort of guessing here but perhaps you are worried about “hidden state” which is a problem in Jupyter notebooks, but is not a problem in Pluto notebooks.
In Pluto, you could delete/comment the cells with the variables and save the notebook and find that they no longer exist.