PowerShell: Clear History of Previous Commands

This is not obvious, but the Clear-History command in PowerShell won’t clear the history of the previous commands. The Clear-History clears only the commands entered during the current session, that could be displayed by the Get-History command. To clear the history in PowerShell, it needs to delete the file in which the previous commands are […]