This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

NotebookDelete

NotebookDelete[notebook]
deletes the current selection in the notebook corresponding to the specified notebook object.
NotebookDelete[]
deletes the current selection in the current evaluation notebook.
  • Using NotebookDelete in the kernel is equivalent to using the Clear command in the front end.
  • After NotebookDelete, the current selection becomes an insertion point at the position of the deleted material.
Select a cell:
Delete the current selection:
Select a cell:
In[1]:=
Click for copyable input
Delete the current selection:
Create a notebook:
Move the selection to the first "T":
Delete the current selection:
Select multiple cells:
Delete the current selection:
New in 3 | Last modified in 6