code: def cancel_registration(self):
          
          iq = aioxmpp.IQ(
              to=self.client.local_jid.bare().replace(localpart=None),
              type_=aioxmpp.IQType.SET,
              payload=xso.Query()
          )
  
          iq.payload.remove = True
          yield from self.client.send(iq)
docs: Cancels the currents client's account with the server.
  
          Even if the cancelation is succesful, this method will raise an
          exception due to he account no longer exists for the server, so the
          client will fail.
          To continue with the execution, this method should be surrounded by a
          try/except statement.