How to delete mesaage from xammp server in ejabberd

337 Views Asked by At

I am new in ejabberd,

In our application need to delete chat messages functinality. so that one question in our mind

Can ejabberd delete message from xammp server using restApi..or other way...?

what is best way for same.

Thanks,

1

There are 1 best solutions below

2
On

I don't know what a "xampp" server is, and don't know what kind of stored messages do you want to delete. The ones stored temporarily by mod_offline? Or the ones stored persistently by mod_mam?

In both cases, those modules do not provide any command to delete a specific message, filtered by some message content.

If you look at the result of "ejabberd help", the command remove_mam_for_user allows to remove all the mam messages stored for an account.