Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions reference/7.7/Microsoft.PowerShell.Core/Clear-History.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history.
### IDParameter (Default)

```
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CommandLineParameter
Expand Down Expand Up @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get-
enter more than one string, `Clear-History` deletes commands that match any of the strings. The
**CommandLine** parameter can be used with **Count**.

For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md).
For strings with a space, use single quotations. For more information, see
[about_Quoting_Rules](About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down Expand Up @@ -402,7 +404,8 @@ information, see [about_History](About/about_History.md).

The session history is managed separately from the history maintained by the **PSReadLine** module.
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
the session history. For more information see
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).

## RELATED LINKS

Expand Down