How do I delete *all* private messages?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • z0diac
    Senior Member
    • Oct 2006
    • 444

    How do I delete *all* private messages?

    Is it possible to delete *all* private messages for all users?
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

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

    UPDATE `user` SET `pmtotal` = '0';
    UPDATE `user` SET `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

    • z0diac
      Senior Member
      • Oct 2006
      • 444

      #3
      Originally posted by Steve Machol
      To delete all PMs, run these 5 queries:

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

      Of course, backup your database first.
      THANK you.

      Comment

      • stuarttunstall
        Senior Member
        • Feb 2004
        • 403
        • 4.2.X

        #4
        Will this work on v 3.7.0?

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          It should.
          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

          • Jose Amaral Rego
            Senior Member
            • Feb 2005
            • 11058
            • 1.1.x

            #6
            Originally posted by stuarttunstall
            Will this work on v 3.7.0?
            If you want to know, then link back to this thread for a question you can ask in 3.7.0 forums. It would seem that it will work, but then you always have to create a working database backup prior to run these queries.

            Last edited by Jose Amaral Rego; Sat 10 May '08, 12:26pm. Reason: Staff has already posted... Meh! :)

            Comment

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