How to delete private data?

Hi there. Is there a way to delete private user data?

Thanks in advance…

Hiya,

I 100% not sure (JEP 49 doesn’'t specifiy deleting private data items) but I imagine that sending a set with an empty child element will do it. JEP 49 states that sending a set item will over-write any exisiting data of the same child element and namespace.

E.g., sending:

<iq type=''set'' id=''1''>
  <query xmlns=''jabber:iq:private''>
    <storage xmlns=''storage:bookmarks''>
    </storage>
  </query>
</iq>

should in theory delete all the user’'s bookmarks.

You have to send a set packet for each child element+name space you want to delete - you can’'t delete all private data by sending:

<iq type=''set'' id=''badiq''>
  <query xmlns=''jabber:iq:private''>
  </query>
</iq>

would get an error message from the server (Bad Format or Not Acceptable).

Let me know how it goes,

Pheet