Cmdlet
Remove-OfficeNotebookCell
Removes a cell from a live notebook.
Syntax
Remove-OfficeNotebookCell
-Document <NotebookDocument>
[-Index] <Int32>
[-PassThru]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Preview removal of the first cell.
$notebook | Remove-OfficeNotebookCell -Index 0 -WhatIfParameters
- -Document NotebookDocument
- Live notebook containing the cell.
- -Index Int32
- Zero-based position of the cell to remove.
- -PassThru SwitchParameter
- Return the updated document.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.