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

Fixed deleting a forum doesn't delete its threads

Discussion in 'Resolved Bug Reports' started by Jake Bunce, Dec 29, 2010.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    beta 5
    erich37 likes this.
  2. Vincent

    Vincent Well-Known Member

    I cannot reproduce this.

    When I delete a forum it deletes it's threads.

    An option would be cool though to move them to another forum.
    ibnesayeed likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Presumably you mean from the database Jake?

    I suggested that a while ago.
  4. Vincent

    Vincent Well-Known Member

    Ah, that would explain it :)
    A little less info is given indeed :p

    And okay, I'll search for it :D
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah. The threads still exist in the database.
  6. Dean

    Dean Well-Known Member

    Where they deleted in earlier versions?
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not sure. I never noticed this problem until beta5.
  8. Dean

    Dean Well-Known Member

    Great input. :)

    I did not check at all...
  9. Wootalyzer

    Wootalyzer Active Member

    I'm surprised this bug is still around. I deleted a large forum today, and low and behold -- all the posts were still lying around in the database. What's the safest way to mass-delete them nowadays?
    erich37 likes this.
  10. Carlos

    Carlos Well-Known Member

    I don't want to delete posts while deleting a forum, so give us a prompt to move posts to another forum before deleting the forum.
  11. Brogan

    Brogan XenForo Moderator Staff Member

  12. Paul

    Paul Well-Known Member

    I have a forum that i wish to remove containing lots of posts - all of which I'm happy to loose - so i take it from the above that if i do this then it wont shrink the database size?

    Is there any easy work around that would allow me to carry this out, removing the posts from the DB as would IMO be the "normal" operation?? There's around 100k posts, so it would need to be something simple and not involve deleting them one at a time... ;)

  13. Floris

    Floris Guest

    I'd love the ability to mass move the threads to an archive forum,
    or to have the option to perm delete them,

    When the node gets deleted.
    erich37 and Paul like this.
  14. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not really. You could query the database but there are several tables involved. It would be difficult to avoid having orphaned records.

    To delete 100k posts you really need a script to process them in batches. There is no utility like this in XenForo right now.
  15. Paul

    Paul Well-Known Member

    so would my option be to export to IPB or vB, delete the offending forum, and then re-import??? Thats mad! (would that work, and what would i loose?!)
  16. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Eww don't do that.

    This thread is listed as a future fix. If you aren't hurting for space then just delete or hide the forum and wait for the devs to fix the issue.
  17. Paul

    Paul Well-Known Member

    We're talking a large number of posts here, (it's actually well in excess of 1M posts), and it's currently stopping me from downsizing my server - my DB is currently over 1gig, so i want to reduce the size asap..!!
  18. MGSteve

    MGSteve Well-Known Member

    I can't believe this is this still outstanding?

    C'mon guys, deleting nodes needs to delete the threads within, its basic data relationship management, otherwise you get orphaned threads.

    With 1.1 you'll get people with large board migrating over and its a great opportunity to do some tidying up (as I'm doing). We need XF to delete threads within the node that's being deleted.
    erich37 and Paul like this.
  19. MGSteve

    MGSteve Well-Known Member

    I would point out deleting the node is not the answer, you'll end up with orphaned posts with no way to remove them until the devs write a function to find and remove orphaned threads & posts. It would be far easier for them to fix the bug in the first place so we don't get orphaned posts & threads!
  20. Brogan

    Brogan XenForo Moderator Staff Member

    They will, hence the Future Fix prefix.

Share This Page