Delete ALL users PM´s with a query?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danbc
    Senior Member
    • Oct 2001
    • 101

    Delete ALL users PM´s with a query?

    Hey guys (and girls)...

    After the import from phpbb, we have had some wierd issues with duplicate PM´s being imported aswell on all the users in our db. So what we wanna do, is to delete every PM in every users inbox with a query..

    Is that possible and how?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    These queries should do the trick:

    DELETE FROM pm

    DELETE FROM pmreceipt

    DELETE FROM pmtext

    UPDATE user SET pmtotal = 0, pmunread = 0, pmpopup = IF(pmpopup=2, 1, pmpopup)

    Comment

    • Danbc
      Senior Member
      • Oct 2001
      • 101

      #3
      Worked like a charm, thanks Jake!

      Comment

      • Danbc
        Senior Member
        • Oct 2001
        • 101

        #4
        Oh another QQ...

        How do I delete templates? I can only find an add/edit function

        Comment

        • Jake Bunce
          Senior Member
          • Dec 2000
          • 46598
          • 3.6.x

          #5
          In vB3, reverting is the same as deleting. In the template manager, select the "revert" option for a template you want to delete.

          Comment

          • Danbc
            Senior Member
            • Oct 2001
            • 101

            #6
            Ahhh, sneaky

            Thanks jake!

            Comment

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