clear-historyA powershell command to clear the entries in the current session. Note:
clhycan be used as an alias forClear-History. More information: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/clear-history.
Clear-History
Clear-History -CommandLine "{{command}}"
Clear-History -CommandLine "{{command_1}}", "{{command_2}}"
Clear-History -Id {{id_number}}
Clear-History -Id {{id_1}}, {{id_2}}, {{id_3}}
Clear-History -Id ({{start_id}}..{{end_id}})
Clear-History -WhatIf
Clear-History -Confirm