import sqlite3


def remove_summoner(guild, name):
    """Removes a summoner from the database

    Args:
        guild (int): ID of guild
        name (str): Name of player to remove

    Returns:
        bool: Whether or not there was a deletion
    """
    
    conn = sqlite3.connect('jit.db')
    c = conn.cursor()
    
    data = (guild, name)
    
    c.execute('''
        DELETE FROM summoner WHERE guild = ? and name = ?
        ''', data)
    
    if c.rowcount == 1:
        conn.commit()
        return True
    else:
        return False