How can I remove or empty all Private messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TriGGeR
    New Member
    • Aug 2005
    • 13

    How can I remove or empty all Private messages

    I have a site and I have installed the read private message hack. Here is my question, I would like to empty ALL private message boxes on the site once a month. How can I do this? I can read them but can't delete them. This is very important to me as I like a clean ship. I asked member to do it but there are some that just can't follow rules.
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    To delete all PMs, run these 4 queries:

    UPDATE `user` SET `pmtotal` = '0',`pmunread` = '0';
    TRUNCATE TABLE `pm`;
    TRUNCATE TABLE `pmtext`;
    TRUNCATE TABLE `pmreceipt`;


    Of course, backup your database first.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...