How to clear bash history on logout

Automatically clear GNU Bourne-Again SHell history when you exit a login shell.

Unset HISTFILE shell variable on login to ensure that the command history will be not saved when a shell exits.

$ echo "unset HISTFILE" | sudo tee /etc/profile.d/

Optionally, set HISTSIZE shell variable to 0 on login, so executed commands will not be saved in the history list.

Beware, this is very inconvenient as it will entirely disable history in a login shell. My advice is to skip this step and use default value this time.
$ echo "HISTSIZE=0" | sudo tee /etc/profile.d/

Create /etc/bash.bash_logout login shell cleanup file that will be executed when a login shell exits. Use it to clear history list.

Do not worry, it will be executed after the ~/.bash_logout individual login shell cleanup file.
$ echo "history -c" | sudo tee /etc/bash.bash_logout
Notice, it will not write emptied history list to the history file. Adding a second command to write history list to the history file will not work as the HISTFILE shell variable was unset. This also means that history list will be not initialized from the history file on startup.

Delete existing ~/.bash_history history file to keep things clean. Remember about other users.

You can always store history list to a custom file. Notice, it will append current history list to a file.

$ HISTFILE=session_history.txt history -w
$ cat session_history.txt
cat .bash_history
HISTFILE=session_history.txt history -w

Please read HISTORY section in the bash manual page to learn more about this topic.