Add delete capability

To both the real thing and the example.

With undo.