# clean¶

sherpa.astro.ui.clean()

Clear out the current Sherpa session.

The clean function removes all data sets and model assignments, and restores the default settings for the optimisation and fit statistic.

save()
restore()
save_all()
>>> clean()