I would normally clear off the history entries from a terminal by using the following commands:
> ~/.bash_history
history -c
But this will remove the entries of that particular session only. How to prune all the entries of all login sessions for a particular user in a system?
N.B: I do not want to delete ~/.bash_history file.
open a session with Ctrl+Alt+F[1-9] and login as root.
mv /home/user/.bash_history /home/user/bash_history.org
or you could date it with
mv /home/user/.bash_history /home/user/bash_history.org-`date '+%l:%M:%S %p'` (lower case L)