Easier to just null the file in-place, e.g.rm ~/.bash_history, touch ~/.bash_history and chmod 0600 ~/.bash_history to set the permissions correctly on the file where bash keeps the history.
Code:
> ~/.bash_history
Code:
cat /dev/null >~/.bash_history
Statistics: Posted by steve_v — 2024-06-24 00:46