Do I loose past statistics when I remove entities from the energy dashboard?

Mostly due to heavy experimentation, my energy tracking entities constantly changed. For example, I might switch integrations, merge energy monitoring for multiple circuits, re-configure ESPhome device which results in renamed entities etc. Now I see something like this:

Those devices have a “bookmark” icon in the dashboard config instead of a bolt:

Now when I select “Yearly” in the energy dashboard I can still see statistics of, say, the meanwhile non-existent circuit_2:

If I go on “Today” all of these old entities are still listed but zero.

I would REALLY like to clean this up and remove old entities from the energy dashboard config. However, I do not want to loose old statistics.

What happens if I remove these entities from the energy dashboard? Will I loose statistics? If yes, is there any workaround?

No, long-term statistics are currently retained indefinitely in your DB, unlike sensor states, etc. that are cleaned up according to your recorder settings.