Don't need this anymore - doing it with php.
Deleting historical refs