def delete_tekton_pipeline_yaml(cursor, yaml_id):
    """tekton_pipeline_yaml情報削除(id指定)

    Args:
        cursor (mysql.connector.cursor): カーソル
        yaml_id (int): yaml ID

    Returns:
        int: 削除件数
    """
    # tekton_pipeline_yaml情報 delete実行
    cursor.execute('''
                DELETE FROM tekton_pipeline_yaml
                    WHERE   yaml_id    =   %(yaml_id)s''',
                {
                    'yaml_id':     yaml_id,
                })

    # 削除した件数をreturn
    return cursor.rowcount