Update/remove data from database per sensor/integration

Home Assistant is a mature system, but yet we like to tinker with various buttons and dials that not always work as intended on the first try.

Therefore, I would REALLY like an option to select a device and a time range to delete the data from the database.

Also I have a lot of sensor integrations and since I am only human, I also make mistakes here. The nice thing is that apart from deleting this data, we should be able to rebuild this data given the source data is still available.
An option to do this would be wonderful!

more use-cases: energy dashboard and switching supplier or meter-change, a spare-plug that get’s a different use every other month (e.g. plug for christmas lights is used for pool-pump in the summer). It would be nice to reset the data.