Announcement

Collapse
No announcement yet.

Easy way to prune threads with guests?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Easy way to prune threads with guests?

    I am doing my yearly spring cleaning of my database.

    What I want to do is delete all user accounts that have 1 or less threads (I can do this easily), then I want to delete those threads. How do I delete all threads posted by "Guest"?

  • #2
    Backup your database, then run this query:

    DELETE FROM thread WHERE postuserid='0';
    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


    • #3
      Would this work for post/threads left behind from previous users that were registered & are now guest with there username.

      IE: Have deleted users but there post/threads are left behind?

      If so this would be good to clean are properly
      Alan

      Comment

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