How to delete/empty notebook output

dbernabeuplx
New Contributor II

I need to clear cell output in Databricks notebooks using dbutils or the API. As for my requirements, I need to clear it for data security reasons. That is, given a notebook's PATH, I would like to be able to clear all its outputs, as is done through the web by accessing run > clear > clear all cell outputs. #notebooks #data