How to pragmatically "clear state & cell outputs" in a Databricks notebook?

arda_123
New Contributor III

I am building a dashboard and at the end of I am using a widget to reset it. At that time I want all the outputs to be removed. Is there a way to do this in python?