This is more just a sort of twitter post than a blog post, but since of they told me there is not an answer on the net I decide to write few lines on my blog.
The function to call is named clearHistory. To clear the history you only have to put this line inside the address bar of your browser:
where id_person is the id of the person you were chatting with.
Good luck and good secrets to everyone! :P