delete stats via management console: move to lib/, docs, generalize, tests