def delete_param(current_scene_db, parameter):
    """Delete an parameter"""
    from src.praxxis.sqlite import connection
    from src.praxxis.util import error
    conn = connection.create_connection(current_scene_db)
    cur = conn.cursor()
    param = 'SELECT * from "Parameters" WHERE Parameter = ?'
    cur.execute(param, (parameter,))
    exists = cur.fetchall()
    if exists == []:
        raise error.ParamNotFoundError(parameter)
    else:
        delete_param = 'DELETE FROM "Parameters" where Parameter = ?'
        cur.execute(delete_param, (parameter,))
        conn.commit()
        return 1
    conn.close()
