I agree SD.
This topic started about clearing the admin/referer logs. Which is a simple single table to clean.
Then topic drift went onto pruning posts. Which is dangerous since the data is spread out among several tables.
Since we already have a tool for pruning.
Control Panel » Prune Topics
It would be best to mimic or hack that process


Blue Man Group
There is no such thing as stupid questions. Just stupid answers