Whether you want to have some sense of privacy or a sense of cleanliness, working with the terminal leaves a history that you might want to remove.
Removing the .bash_history upon exiting the terminal is the goal for this post.
Create a .rm_terminal_history.sh file in the directory that .bashrc file is in.
After the script is created, give it executable privileges.
chmod +x .rm_terminal_history.sh
Now add a reference to your .bashrc file for the script to run
#Add following line to .bashrc
The .bash_history file will be remove when exiting the terminal at any time.