Mathematica > Notebooks and Documents > Low-Level Notebook Programming > NotebookDelete >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF