scout/commands/delete/delete_command.py
def user(context, mail):
    """Delete a user from the database"""
    LOG.info("Running scout delete user")
    adapter = context.obj['adapter']
    user_obj = adapter.user(mail)
    if not user_obj:
        LOG.warning("User {0} could not be found in database".format(mail))
    else:
        adapter.delete_user(mail)
def user(context, mail):
    """Delete a user from the database"""
    LOG.info("Running scout delete user")
    adapter = context.obj['adapter']
    user_obj = adapter.user(mail)
    if not user_obj:
        LOG.warning("User {0} could not be found in database".format(mail))
    else:
        adapter.delete_user(mail)
Delete a user from the database