You can use one of the following two commands to clear the bash history on Linux.
These commands empty the .bash_history file of the currently logged-in user and also cleans the history of the current user session.
1.
cat /dev/null > ~/.bash_history && history -c
2.
>~/.bash_history && history -c