How to remove the old flags in the PR's comment

I have a monorepo that uses codecov.yml with flags to separate different tests.

Description

When I rename flag x6_geometry to x6-geometry, the Codecov Report in the PR’s comment still contains the old x6_geometry flag with unknow coverage.

How can I remove the old flags in the report.

Repository

CI/CD or Build URL

Uploader

GitHub Action

Run codecov/codecov-action@v1
  with:
    token: ***
    files: ./packages/x6-geometry/test/coverage/lcov.info
    flags: x6-geometry

Codecov Output

/usr/bin/bash codecov.sh -n  -F x6-geometry -Q github-action-v1.5.2 -f ./packages/x6-geometry/test/coverage/lcov.info -C 5ba4d82079854d522c0444f4889d69dc42e56393 -P 1122

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-1.0.3


==> git version 2.32.0 found
==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
==> GitHub Actions detected.
    Env vars used:
      -> GITHUB_ACTIONS:    true
      -> GITHUB_HEAD_REF:   fix/issue-1086
      -> GITHUB_REF:        refs/heads/master
      -> GITHUB_REPOSITORY: antvis/X6
      -> GITHUB_RUN_ID:     956585065
      -> GITHUB_SHA:        27ad5e786c67e47788e1d8448af3a8cdb077f942
      -> GITHUB_WORKFLOW:   👷 CI
    project root: .
--> token set from env
    Yaml found at: .codecov.yml
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./packages/x6-geometry/test/coverage/lcov.info bytes=77013
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
        76K	/tmp/codecov.4SWdxh.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=fix%2Fissue-1086&commit=5ba4d82079854d522c0444f4889d69dc42e56393&build=956585065&build_url=http%3A%2F%2Fgithub.com%2Fantvis%2FX6%2Factions%2Fruns%2F956585065&name=&tag=&slug=antvis%2FX6&service=github-actions&flags=x6-geometry&pr=1122&job=%F0%9F%91%B7%E3%80%80CI&cmd_args=n,F,Q,f,C,P
->  Pinging Codecov
https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=fix%2Fissue-1086&commit=5ba4d82079854d522c0444f4889d69dc42e56393&build=956585065&build_url=http%3A%2F%2Fgithub.com%2Fantvis%2FX6%2Factions%2Fruns%2F956585065&name=&tag=&slug=antvis%2FX6&service=github-actions&flags=x6-geometry&pr=1122&job=%F0%9F%91%B7%E3%80%80CI&cmd_args=n,F,Q,f,C,P
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-06-21/F42631AFA6F11877A1DA43E5DBBCADE0/5ba4d82079854d522c0444f4889d69dc42e56393/e3ef417a-a367-4437-8279-90d9df011429.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210621%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210621T094613Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b026aff0f636cdb6d6fd9cb46959078ca4513c0cd2f95b89129946ab9f6dacda
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 76707    0     0  100 76707      0   423k --:--:-- --:--:-- --:--:--  423k
    -> Reports have been successfully queued for processing at https://codecov.io/github/antvis/X6/commit/5ba4d82079854d522c0444f4889d69dc42e56393

Expected Results

Do not contain the old flags in the report.

Actual Results

Old flags ware contained in the report with unknow coverage.

Additional Information

@bubkoo looks like your codecov.yml is not valid, and so we cannot take it into account. See line 7. threshold should be under another subheader. You can validate the yaml with this