<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def marvcli_user_rm(ctx, username):
 """Remove a user"""

    app = create_app()
    try:
        app.um.user_rm(username)
    except ValueError as e:
        ctx.fail(e.args[0])