Cmdlet
Clear-OfficeNotebookOutput
Clears saved results from a code cell, optionally including its execution count.
Syntax
Clear-OfficeNotebookOutput
-Cell <NotebookCell>
[-ExecutionCount]
[-PassThru]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Clear all saved results before sharing a notebook.
$notebook | Get-OfficeNotebookCell -Kind Code | Clear-OfficeNotebookOutput -ExecutionCountParameters
- -Cell NotebookCell
- Code cell containing the saved results.
- -ExecutionCount SwitchParameter
- Also clear the code cell's saved execution count.
- -PassThru SwitchParameter
- Return the updated cell.
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.