def unregister(disp,host):
    """ Unregisters with host (permanently removes account).
        disp must be connected and authorized dispatcher instance.
        Returns true on success."""
    resp=disp.SendAndWaitForResponse(Iq('set',NS_REGISTER,to=host,payload=[Node('remove')]))
    if isResultNode(resp): return 1
 Unregisters with host (permanently removes account).
        disp must be connected and authorized dispatcher instance.
        Returns true on success.
chrome-cordova/gcmServer/xmpp/features.py