Is there an easy way to delete a topic? At present I am moving it to the end of the course and then reducing the number of topics in the course.
Thanks,
Jim Robertson.
Is there an easy way to delete a topic? At present I am moving it to the end of the course and then reducing the number of topics in the course.
Thanks,
Jim Robertson.
Hi D.I.-
If you're still watching this forum, I'm curious: if you have to reorganize a course's sections, doesn't this label-based organization scheme become cumbersome? With course sections, you can move the whole section. With labels, you have to move each resource separately, one by one...
-Sean
This is the right answer. I try it and it works for me.
Hi, I have the same problem in that we want to create a bank of "lessons" (topics to Moodle) which can be moved around individually and dragged into new coureses topic by topic.
We found the Project Course Format pretty good (http://docs.moodle.org/en/Project_Course_Format) as this gives each topic (now called a project) a name and address so it can be backed up and restored individually.
As far as deleting topics goes, I discovered the same idea as the first contributor in 2005 of moving the unrequired one(s) to the bottom of the course then changing the number of topics shown.
If you try to convert topic based courses to project based courses (by restoring a topic based course back up to a pre-created project course) it doesn't work very well as it tries to identify a project name and gets confused. You can edit the file names manually but I am a bit wary of that in causing other problems down the line ...
My solution (yet to be verified) is to copy my topic course several times, then delete topics (by shortening the numbr of topics) then backing up a course with a single topic in it and importing it into a pre-created project based course. Starting to get a bit confusing ...
Bring on the topic delete function!
Hi, I also have been trying to find a "delete" topic button somewhere. I am using Moodle 2.0 and still can't find it, Rick. I'll do the work around suggested but agree Please put in a delete topic function somewhere easily found - soon!
If you want to delete the topic, just move it to the last topic and go to Settings (administration bar), in Number of weeks/topics put the number of topics that you want to have! It worked for me!
In 2.1 moving the topic to the end and then reducing the number of topics produces a number of Orphaned Activities. How do you then delete the Orphaned Activities
Change the number of topics back to what it was originally and then delete them manually.
If I many resources in many orhpaned weeks and I want to permananetly delete them, do I have to do it one by one?
I've read this entire post. I want to delete and not just hide topics. Is there a way to do it manually?
There is no UI for that, but if you have access to the database and are comfortable with DB queries and with the possibility of helplessly corrupting your data, you can try deleting the topics from mdl_course_sections. First query the list of sections for the desired course id sorted by the 'section' field, and then delete the undesired sections (empty 'sequence' means that the section has no activities attached to it).
We are using moodle 2.7. In order to delete a section we had to do the following steps:
I may have solved my issue. If you delete all of the content of an orphaned topic, the topic disapears. I didn't see this solution in the docs or posts.
I don't think too many are concerned with deleting topics when there are other, arguably more urgent, issues with the course formats and topics rendering.
Federico,
This is why I usually make a course back up with all user data before I do a lot of importing, etc. It only takes a couple of minutes and is easy to delete if I don't need it. That way, if things go wrong, I can quickly restore the course without having to do 400 clicks.
I think the best way to do this might be to do a full course backup of everything except the topic you want to delete.
Then restore from that backup. One of the options will be to delete the contents of the current course and restore from backup... or something to that effect.
I'm trying it right now on my site.... seems to have worked.
In terms of what the server is doing, not a very efficient way to go about things, but a LOT better than the death by mouse click of manually deleting everything in a large topic.
Tracker item here: https://tracker.moodle.org/browse/MDL-10405
Does not have many votes yet, even though it is now seven years old.
There is a solution in the plugins.
This is one of those things that is basically a no brainer to code. It's just priorities. All the Moodle As Moodle Partners who run their own distros have built in solutions, so there is no pressure for change there. Some of the Moodle partners who run hosted services have installed a plugin. Ditto.
So poor old Moodle core is just stuck with lots of clicks.
I would really like to see this in the Long term supported release 2.7
-Derek
Tracker item here: https://tracker.moodle.org/browse/MDL-10405
Does not have many votes yet, even though it is now seven years old.
There is a solution in the plugins.
This is one of those things that is basically a no brainer to code. It's just priorities. All the Moodle As Moodle Partners who run their own distros have built in solutions, so there is no pressure for change there. Some of the Moodle partners who run hosted services have installed a plugin. Ditto.
So poor old Moodle core is just stuck with lots of clicks.
I would really like to see this in the Long term supported release 2.7
-Derek
We would love the ability to check boxes on the homepage and then click a button to delete them. Our faculty ask for this every semester.
Here is the way to do it:
1) Place all topics you want to delete at the end of your list of topics.
2) Edit settings
3) Course format
4) Format: Topics format
5) Number of sections: add a number that equals the number of topics you wish to show - everything after that number will be deleted (or at least I cannot see the additional topics any more).
This is also the way to add new topics.
6) Save changes
Thank Christof for the tip. It worked for me and this is what I was looking for: Completely getting rid of a topic instead of just hiding it.
Shams
I'm using 2.6 and following your instructions I got Orphaned activities. Sadly files are still there.
Seven years on from the original post. Have they finally fixed this?
As far as I can tell (moodle 2.7.3) we are still having to do the tedious solution of dragging labels and activities around - instead of a simply delete function?
If thats the case (and I could be wrong!) does anyone else find that amazing it is still not addressed/fixed?
We can delete topics now (2.9 and higher)...just not in versions that old. (2.7)
Arghgh !! Sods law I have the one version that doesnt have this. Version 2.9? It was about time !!! Only took 7 years!
Well, since I took on responsibility for two old activity plugins, I can understand why it takes so long to get "new" capability added. I'm wanting to add a new keyboard color setting to MooTyper and with all the other stuff I have going on, I haven't got to spend more than maybe thirty minutes in the past week on it. Mainly because I always like to help out with QA testing which is ongoing right now for Moodle 3.1, and I also learned about the Code Checker plugin...ran it on the two plugins...I have fixed over 12 thousand errors and warnings since last Saturday.
I know that sometimes there are good reasons for staying on an old Moodle version, but I think some of the new stuff in 3.1, such as the new Competencies capability, would make it worth the effort to upgrade.