Removing a manually added state class

Where I’ve manually added a state class to a sensor, that sensor’s data is stored in the long-term stats table. If I now remove that state class (for whatever reason), does HA remember the state class (in the sense that its now part of the sensor’s config in the .storage files) and hence will keep recording long-term stats?

What would be my best recourse? Remove it from the storage files, and optionally delete the data from the DB manually?

Fix it in Developer Tools → Statistics.

Right, I’ll check there. I though only sensors that are actively being recorded in long-term stats would show up there, not also ones removed, but it makes more sense now that it could, given the kind of error messages I saw there before (like the state class being empty).