NotebookDelete

NotebookDelete[notebook]
deletes the current selection in the notebook corresponding to the specified notebook object.

NotebookDelete[obj]
deletes the given cell or box object.

NotebookDelete[{obj1,obj2,}]
deletes all specified objects.

NotebookDelete[]
deletes the current selection in the current evaluation notebook.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Select a cell:

In[1]:=
Click for copyable input

Delete the current selection:

Display a button that deletes its cell:

In[1]:=
Click for copyable input
Out[1]=

Display a list of self-deleting buttons:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 1996
(3.0)
| Updated in 2012
(9.0)