Delete all Nodes and reset UndoManager for NewCommand

Hi,
I want to implement some sort of “NewCommand” to enable the user to set up a clear diagram.
What is the best way to do this?

Create a new model and replace Diagram.Model.