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 Options

Examples

open allclose all

Basic Examples  (2)

Select a cell:

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

Delete the current selection:

In[3]:=
Click for copyable input

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]=

Scope  (1)

See Also

NotebookRead  NotebookWrite

Tutorials

Introduced in 1996
(3.0)
| Updated in 2012
(9.0)