CmdID / PowerShell / Cmdlets / Remove
Remove-PSBreakpoint
Deletes breakpoints from the current console. PowerShell reference
From the PowerShell reference
4 parameters
Alias rbp
What it does
Deletes breakpoints from the current console. The Remove-PSBreakpoint cmdlet deletes a breakpoint. Enter a breakpoint object or a breakpoint ID. When you remove a breakpoint, the breakpoint object is no longer available or functional. If you have saved a breakpoint object in a variable, the reference still exists, but the breakpoint does not function. Remove-PSBreakpoint is one of several cmdlets designed for debugging PowerShell scripts. For more information about the PowerShell debugger, see about_Debuggers.
Remove-PSBreakpoint [-Breakpoint] <Breakpoint[]> [-WhatIf] [-Confirm] [<CommonParameters>]Remove-PSBreakpoint [-Id] <Int32[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove all breakpoints
Get-PSBreakpoint | Remove-PSBreakpointIdentifyRemove a specified breakpoint
$B = Set-PSBreakpoint -Script "sample.ps1" -Variable "Name"
$B | Remove-PSBreakpointIdentifyRemove a breakpoint by ID
Remove-PSBreakpoint -Id 2IdentifyUse a function to remove all breakpoints
function del-psb { Get-PSBreakpoint | Remove-PSBreakpoint }IdentifyIts page in the reference: Remove-PSBreakpoint.
Parameters
-BreakpointSpecifies the breakpoints to delete. Enter a variable that contains breakpoint objects or a command that gets breakpoint objects, such as a Get-PSBreakpoint command. You can also pipe breakpoint objects to Remove-PSBreakpoint.-IdSpecifies breakpoint IDs for which this cmdlet deletes breakpoints.-ConfirmPrompts you for confirmation before running the cmdlet.-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.