Another way to clear history is to delete .bash_history file.
rm -f ~/.bash_history
However, actions on .bash_history will not clear the history of commands
used in the bash session running at that time. That history is stored in
RAM and written to .bash_history when the session ends. The correct way
to clear history is to use 'history -c' because this will clear all
history, including commands used in the session from which the command
'history -c' is given.