@gen.coroutine
def TerminateAccount(client, obj_store, user_id, device_id, request):
  """Terminate the calling user's account. Unlink all identities from the
  user, mute all device alerts, and disable all sharing.
  """
  request['user_id'] = user_id
  yield gen.Task(Operation.CreateAndExecute,
                 client,
                 user_id,
                 device_id,
                 'User.TerminateAccountOperation',
                 request)

  logging.info('TERMINATE ACCOUNT: user: %d, device: %d' % (user_id, device_id))
  raise gen.Return({})
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/service.py/TerminateAccount/original