Adam
You can clear the command history buffer with an exec command. The history buffer size defaults to 10 but you can control the size. If you want to change the size permanently you use a command in line configuration mode: history size and if you want to change it only for your session you use this command in exec mode: term history size .
So if you want to clear or reset the history buffer I would do this:
term history size 0 (which empties the buffer)
term history size 10 (or whatever value it had been set to).
I tested it and it worked very well for me.
HTH
Rick
HTH
Rick