How do I delete some of a sensors history?

If you go to Developer Tools | Statistics and search for the sensor which had a funny turn, you may be able to edit its long term statistics and fix your graph (click on the icon on the extreme right). The sensor’s history will disappear in a few days anyway (default 10, but it depends on your configuration).