def delete_records(project: TestProjInfo, table: str, where: str = None):
    """
    Deletes records from a table in a dbt project

    Args:
        project: the dbt project that contains the table
        table: the name of the table without a schema
        where: the where clause to apply, if any; defaults to all records
    """
    table_name = relation_from_name(project.adapter, table)
    where_clause = where or "1 = 1"
    sql = f"""
        delete from {table_name}
        where {where_clause}
    """
    project.run_sql(sql)

    Deletes records from a table in a dbt project

    Args:
        project: the dbt project that contains the table
        table: the name of the table without a schema
        where: the where clause to apply, if any; defaults to all records
    
tests/functional/adapter/simple_snapshot/common.py