I am looking for a code I can paste at the beginning of a notebook to delete all the output cells so that when I execute the "Evaluate notebook" command, all the output cells are also cleared. As of now, I manually do "Cell > Delete All Output" before executing the "Evaluate notebook" command.
$\begingroup$
$\endgroup$
3
-
1$\begingroup$ Possible duplicate of 16665, 13978 and perhaps several more. $\endgroup$– SyedCommented Dec 10, 2022 at 11:14
-
4$\begingroup$ FrontEndTokenExecute["DeleteGeneratedCells"] $\endgroup$– Daniel HuberCommented Dec 10, 2022 at 15:04
-
$\begingroup$ @DanielHuber, thanks for your reply. I liked the command you suggested and will use it henceforth. $\endgroup$– akrCommented Dec 10, 2022 at 19:12
Add a comment
|