synapse/handlers/device.py
def delete_all_devices_for_user(self, user_id, except_device_id=None):
        """Delete all of the user's devices

        Args:
            user_id (str):
            except_device_id (str|None): optional device id which should not
                be deleted

        Returns:
            defer.Deferred:
        """
        device_map = yield self.store.get_devices_by_user(user_id)
        device_ids = device_map.keys()
        if except_device_id is not None:
            device_ids = [d for d in device_ids if d != except_device_id]
        yield self.delete_devices(user_id, device_ids)
Delete all of the user's devices

        Args:
            user_id (str):
            except_device_id (str|None): optional device id which should not
                be deleted

        Returns:
            defer.Deferred:
        
Delete all of the user's devices
Delete all of the user ' s devices
def delete_all_devices_for_user(self, user_id, except_device_id=None):
        device_map = yield self.store.get_devices_by_user(user_id)
        device_ids = device_map.keys()
        if except_device_id is not None:
            device_ids = [d for d in device_ids if d != except_device_id]
        yield self.delete_devices(user_id, device_ids)
def delete_all_devices_for_user ( self , user_id , except_device_id = None ) : device_map = yield self . store . get_devices_by_user ( user_id ) device_ids = device_map . keys ( ) if except_device_id is not None : device_ids = [ d for d in device_ids if d != except_device_id ] yield self . delete_devices ( user_id , device_ids )
Delete all of the user's devices
Delete all of the user ' s devices
"""Delete all of the user's devices

        Args:
            user_id (str):
            except_device_id (str|None): optional device id which should not
                be deleted

        Returns:
            defer.Deferred:
        """
None
defer.Deferred
self
user_id
None
except_device_id
optional device id which should not
be deleted
optional device id which should not be deleted