View Full Version : Can the vb datamanager be used to delete PMs?
jwocky
11-01-2010, 02:40 AM
I use the datamanager to easily create and send PMs, but I was wondering if it could be similarly used to delete PMs? If not, what it the proper way to delete a PM? It seems PM data is held across multiple tables?
Thanks!
I don't know about the datamanager, but looking at the "delete" section of private.php, it looks like it uses
"DELETE FROM " . TABLE_PREFIX . "pm
WHERE pmid IN(" . implode(', ', $pmids) . ")"
to delete an array of ids from the pm table, then calls a function build_pm_counters (also in private.php) to fix the user table entries.
It looks like 'orphaned' entries in the pmtext table are cleaned up by a scheduled task that runs once an hour.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.