How do I manually delete a forum?

How do I manually delete a forum?

by Joel R Smith -
Number of replies: 2

How do I manually delete a forum using the MySQL Query Browser?  I have to delete 500 News Forums due to a bug in Moodle.

I tried clearing them out from the mdl_forum Table, but the icon for the forum still is there.

Thanks.

Average of ratings: -
In reply to Joel R Smith

Re: How do I manually delete a forum?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
For each activity in a course, as well as a row in the specific table like forum or quiz, there is also a generic row in the course_modules table. There is then also a list of course_module ids in the course_sections.sequence column (I am guessing that column name sequence, but it is something like that.) Finally, there is some cached information in the course.modinfo column, but if you set that to an empty string, it will be rebuilt the next time the course is viewed.