Hi Hal,
In case it adds to what you figured it out, I've added the script that I use to clear out old anonymous tests to the Admin script section of the wiki, http://webwork.maa.org/wiki/Contributed_Admin_Scripts_%28Large_Installations%29 . I run it daily, and have it log how many users and tests were involved before deleting the tests.
Gavin