I know for wordpress there's a plugin that does that. It'll scan your current installed plugin to the uninstalled left over plugins and after the scan it'll give you a list for removal.It was a neat feature that i used. It brought down the database size.
I wish that vbulletin has that feature or pluggin.