def METHOD_NAME():
    tm3_org_name = "TM3"
    tm3_validator_team = "TM3-validators"
    tm3_pm_team = "TM3-project-managers"
    conn = op.get_bind()
    # Fetch validator and project manager team ID
    validator_team_id = [
        r[0]
        for r in conn.execute(
            sa.text("select id from teams where name = '" + tm3_validator_team + "';")
        )
    ][0]
    pm_team_id = [
        r[0]
        for r in conn.execute(
            sa.text("select id from teams where name = '" + tm3_pm_team + "';")
        )
    ][0]
    # Disassociate all projects from the team
    conn.execute(
        sa.text("delete from project_teams where team_id=" + str(validator_team_id))
    )
    # Get all the users in the undefined-validators
    # Set role = 4 in users for all the selected users
    validators = conn.execute(
        sa.text(
            "select user_id from team_members where team_id="
            + str(validator_team_id)
            + ";"
        )
    )
    for validator in validators:
        conn.execute(
            sa.text("update users set role = 4 where id=" + str(validator[0]) + ";")
        )
    # Get all the users in the undefined-pms
    # Set role = 2 in users for all the selected users
    pms = conn.execute(
        sa.text(
            "select user_id from team_members where team_id=" + str(pm_team_id) + ";"
        )
    )
    for pm in pms:
        conn.execute(sa.text("update users set role = 2 where id=" + str(pm[0]) + ";"))
    # Remove all users from both the teams
    conn.execute(
        sa.text(
            "delete from team_members where team_id in ("
            + str(validator_team_id)
            + ","
            + str(pm_team_id)
            + ");"
        )
    )
    # Delete the teams and organisation
    conn.execute(
        sa.text("delete from teams where name = '" + tm3_validator_team + "';")
    )
    conn.execute(sa.text("delete from teams where name = '" + tm3_pm_team + "';"))
    conn.execute(
        sa.text("delete from organisations where name = '" + tm3_org_name + "';")
    )