How to clear the long term stats of a sensor

You can perform recorder: purge_entity action in dev tools.