XMPPFramework - Delete a registered user account
-
21-12-2019 - |
Question
I am using https://github.com/robbiehanson/XMPPFramework for my iOS chat application.
I need help here to delete a registered user account.
Kindly help me out.
Solution
As described in the section Entity Cancels an Existing Registration of XEP-0077, you need to send the following stanza to the server:
<iq type='set' id='unreg1'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
The server should then send a 'not-authorized' stream error and terminate the connection.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow