def METHOD_NAME(ctx: click.Context, username: str):
    if not username:
        error_shout(u'Please specify the username to be removed')
        return
    site_user = logic.get_action(u'get_site_user')({u'ignore_auth': True}, {})
    context: Context = {u'user': site_user[u'name']}
    with ctx.meta['flask_app'].test_request_context():
        logic.get_action(u'user_delete')(context, {u'id': username})
        click.secho(u'Deleted user: %s' % username, fg=u'green', bold=True)