def delete_rule(ruleset_db, rulename):
    """deletes a rule from the ruleset"""
    from src.praxxis.sqlite import connection
    conn = connection.create_connection(ruleset_db)
    cur = conn.cursor()
    foreign_keys = 'PRAGMA foreign_keys = ON'
    delete_rule = 'DELETE FROM "Rules" WHERE Name = ?'
    cur.execute(foreign_keys)
    cur.execute(delete_rule, (rulename,))
    conn.commit()
    conn.close()
