async def remove_level_role(bot, guild_id, level):
    """Remove a level role"""
    level_role = await bot.level_db.fetch_one(
        "SELECT * FROM leveling_roles WHERE guild_id=:guild_id AND level=:level",
        {"guild_id": guild_id, "level": level},
    )

    if not level_role:
        return f"No level role found on level `{level}`."

    await bot.level_db.execute(
        "DELETE FROM leveling_roles WHERE guild_id=:guild_id AND level=:level",
        {"guild_id": guild_id, "level": level},
    )

    return "Level role removed."