({{, (RefLink[NotebookDelete, paclet:ref/NotebookDelete])[notebook]
deletes the current selection in the notebook corresponding to the specified notebook object. }, {, (RefLink[NotebookDelete, paclet:ref/NotebookDelete])[obj]
deletes the given cell or box object.}, {, (RefLink[NotebookDelete, paclet:ref/NotebookDelete])[{(Subscript[obj, 1]),(Subscript[obj, 2]),…}]
deletes all specified objects.}, {, (RefLink[NotebookDelete, paclet:ref/NotebookDelete])[] 
deletes the current selection in the current evaluation notebook.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[NotebookDelete, paclet:ref/NotebookDelete]) can take a (RefLink[NotebookObject, paclet:ref/NotebookObject]), (RefLink[CellObject, paclet:ref/CellObject]), or (RefLink[BoxObject, paclet:ref/BoxObject]).

Using (RefLink[NotebookDelete, paclet:ref/NotebookDelete]) on a (RefLink[NotebookObject, paclet:ref/NotebookObject]) is equivalent to using the Clear command on that notebook.

After using (RefLink[NotebookDelete, paclet:ref/NotebookDelete]) on a (RefLink[NotebookObject, paclet:ref/NotebookObject]), the current selection becomes an insertion point at the position of the deleted material.

Using (RefLink[NotebookDelete, paclet:ref/NotebookDelete]) on one or more (RefLink[CellObject, paclet:ref/CellObject]) expressions will not change the selection unless the selection intersected with one of the specified cells.

Deleting the selection in a (RefLink[NotebookObject, paclet:ref/NotebookObject]) will automatically scroll to the resulting selection unless the option setting (RefLink[AutoScroll, paclet:ref/AutoScroll])->(RefLink[False, paclet:ref/False]) is given.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Select a cell:

nb=CreateDocument[{a,b,c}];

SelectionMove[nb,Next,Cell]

Delete the current selection:

NotebookDelete[nb]

Display a button that deletes its cell:

Button["delete",NotebookDelete[EvaluationCell[]]]

Display a list of self-deleting buttons:

Table[Button["delete",NotebookDelete[EvaluationBox[]]],{10}]

OpenersExampleSection1(Spacer1)Scope  (1)

Create a notebook:

nb=CreateWindow[DocumentNotebook[{CellGroup[{TextCell["Text","Section"],TextCell["some text","Text"]}],CellGroup[{TextCell["Next section","Section"]}]}]];

Move the selection to the first "T":

SelectionMove[nb,Before,CellContents];
SelectionMove[nb,All,Character]

Delete the current selection:

NotebookDelete[nb]

Select multiple cells:

SelectionMove[nb,All,CellGroup]

Delete the current selection:

NotebookDelete[nb]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[NotebookRead, paclet:ref/NotebookRead])  ▪  (RefLink[NotebookWrite, paclet:ref/NotebookWrite])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Notebooks from the Kernel, paclet:tutorial/ManipulatingNotebooksFromTheKernel])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Low-Level Notebook Programming, paclet:guide/LowLevelNotebookProgramming])}})}})