1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Delete all posts from a "forum" node

Discussion in 'XenForo Questions and Support' started by smsmasters, Jul 26, 2011.

  1. smsmasters

    smsmasters Active Member

    Is there a quick way?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You could do it with an SQL query, but otherwise no.
     
  3. ragtek

    ragtek Guest

    I wouldn't do it via an sql query, because this wouldn't rebuild the forum- & user post count and the search index;)
    So you would still find the threads/posts via search, and then you'll get an error

    if it's not possible in xf, you would need a add-on for this ( i'll check my add-on repository, i think i've coded this already)
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    True, but you can rebuild the caches.
     
  5. smsmasters

    smsmasters Active Member

    I think I could just delete the forum node then create it again as another way.
     
  6. ragtek

    ragtek Guest

    and what's with the thread associated (add-on ) data?:) (I know, many don't use add-ons, so it could be ok for them, but for everybody else, i recommend to NEVER delete something manual !
    you'll have too many unnecessary add-on data in the database^^
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    I agree.

    But without an add-on, there is no other option in some cases.

    Usually if I reply and say no, the follow up question then asks whether it can be done directly on the database.
    So now I just give both answers in the same post.
     
  8. smsmasters

    smsmasters Active Member

    Ragtek do you have an addon for this please?

    Thanks!
     
  9. James

    James Well-Known Member

    Couldn't you just select all threads and delete?
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    That would take a while if there are hundreds or thousands of threads.
     
    smsmasters likes this.
  11. ragtek

    ragtek Guest

    No, haven't found it, but i'll code it for free, if you play the tester;)
     
    jmurrayhead likes this.
  12. smsmasters

    smsmasters Active Member

    Okay :)
     
  13. ragtek

    ragtek Guest

Share This Page