Ahmad Alhaj Alabdulla
Ahmad Alhaj Alabdulla

Reputation: 71

how could I delete archived messages partially or completely from ejabberd server 16.06

how could I delete archived messages partially or completely from ejabberd server 16.06 (I am using conversejs as ejaberd client).

Upvotes: 3

Views: 1450

Answers (1)

Hare Kumar
Hare Kumar

Reputation: 719

To remove a single collection. You need to send a request to the ejabberd server in below format.

<iq type='set' id='remove1'>
  <remove xmlns='urn:xmpp:archive'
          with='[email protected]/chamber'
          start='1469-07-21T02:56:15Z'/>
</iq>

with: The 'with' attribute MAY specify JID of XMPP entities
start: 'start' and 'end' elements MAY be specified to indicate a date range

Yes there might be an end attribute. You can read all about in details here. Perhaps you might have to implement the api by yourself at client side.

Disclaimer: I haven't worked with converse.js

Upvotes: 2

Related Questions