Author: Bharat Mediratta
This script will delete all the comments in your Gallery2, in chunks of 500. Use it very carefully! It's intended to be starting off point if you intend to blast comments in bulk (which is something that we do periodically for the demo Gallery2 on the Gallery website).
To use it, just copy this script into your Gallery2 directory and then open it up in your web browser. You will have to edit Note that as a safety measure, it won't do anything until you edit the following line and set: $DRY_RUN = false;