Delete chat history from openfire and eventually from a client

Hi there;

I’m developing a chat solution based on smack and openfire, I have a backend for my app for registring clients.

So I’d like delete chat history from openfire and eventually from client. I made some research but I didn’t find any things. So I wondering if you have any idea about that.

May be can I delete chat history directly from Openfire’s database? It’s possible to do that from my backend?