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

Permanently Delete Thread Using DataWriter

Discussion in 'XenForo Development Discussions' started by mjda, Jun 4, 2013.

  1. mjda

    mjda Active Member

    Is it possible to permanently delete (remove from the database) a thread, and its associated post(s), using the datawriter in an external script? I can't seem to find how to do so. Right now the script would just move the threads to a "To Delete" forum that is only viewable by staff. Then we'd have to go in and manually delete the threads there. That's not really ideal, though. If any of you can point me in the right direction, that would be great!
  2. Nobita.Kun

    Nobita.Kun Well-Known Member

    See XenForo_Model_Thread::deleteThread for more information ;)
    mjda likes this.
  3. mjda

    mjda Active Member

    Awesome! Thanks for the info.

Share This Page