Moodle 2.1.1+ (Build: 20110811)
After much mulling of pros and cons, we have adjusted capabilities so that a teacher is allowed to delete his or her course(s).
However, when logged into a course as the teacher, a tool for deleting the course is nowhere to be found.
Where is it hidden?
Thanks for any tips on finding it.
PS: We already know how to delete courses using system-wide admin capabilities, so that's not the issue here.
Hi Bill. Which permissions did you alter in order to be able to do this? (or to think you could do this, I should say) I haven't set this up but I would assume you would have to give the teacher at the very least category rights in order to go to the category page to be able to delete their course - a bit like a course creator.
Hi Bill and Mary,
Is this now possible in 2.1? In 1.9 I'd understood it had to be all or nothing: either a user can delete all courses - not just their own, or no courses. Is it now possble for a user (teacher, manager... whatever) to delete just their own courses? Or just courses in a certain category?
Very useful but also a little dangerous. Do all teachers realise that if they haven't made a backup, the course is gone for ever?
Per my original post, the decision was made after considerable thought. Not taken lightly.
But these questions remain:
(1) In 2.1, can a teacher be given the capability to delete his/her course(s) (but not anyone else's courses)?
(2) If so, what is the correct configuration to achieve that capability?
(3) When properly configured, where is the trigger located so the teacher can pull it?
You can give a teacher the delete course capability, but there is no 'delete me' link or button inside the course. Even if you are logged in as an admin, you won't find any sort of 'delete course' functionality within a course. If this is something you really want to do, you'll have to add it yourself.
As a quick test on the demo site, I gave teachers the moodle:course/delete capability and I stuck a "Delete this course" link in an html block - the link points to http://demo.moodle.net/course/delete.php?id=n (where n is the course id) - and it does allow the teacher to delete that particular course.
Thanks for your response.
So you're saying that I properly configured the capability, but there is no corresponding mechanism in 2.1 for utilizing the capability?
If so, that's kind of a tease, isn't it?
Any chance a link or button (I kind of like the mushroom cloud, myself) to utilize that capability will be added to Moodle's built-in functionality?
Re the "delete course" capability, it's because usually those who have the capability to delete courses usually have the capabilty to access categories (like a manager) and delete from the category page- you have never been able to delete a course from within a course - though Ann's workaround is obviously a good one.
Following Ms. Mary to say that you have to realize that you can't nuke yourself from within the course (we here call them "classrooms"). To commit hari kari, you must be one level above the classroom (the "context"), which is why you see mention of "category." Basically, you must be the avenging angel who can exist one level above the course to be nuked, just like Tibbets above Hiroshima.
Thanks. (And very evocative!)
How about this.
If for one of his/her courses (aka classrooms) a teacher wants to get rid of all user data, activities, blocks, etc -- essentially wipe the slate clean and start all over again -- what is the best procedure to follow?
Actually, Bill, you probably don't want to do that. You probably want to preserve the data as part of a student's educational record. Our policy is to keep a classroom accessible to students for 18 months. I hate to suggest checking with your legal division, but I would.
Now, you do have some options.
Somewhere, there is a reset button for a classroom. I've never used it, but I get the sense that it's kind of like the nuke option and leaves a hollow shell.
You can backup the course with no user data, which is what we do. This gives you all the resources and activities and so forth. The only downside is that teacher created forum discussion starters are stripped away.
You can make a template course (classroom), which is also what we do, enrolling teachers but no students. With a template, you can backup with user data (if you wish), preserving those forum discussion starters.
Oh, and looking at your "clean slate" request. You can create a new course from scratch! [Ben slaps forehead.]
Hi Marry There is a problem with this idea.
One course creator should be able to delete a course that he/she created. I give instructors to create a course in their category. Such that,
An math prof. can only create course in math category i manually assign them as a course creator at that category.
But at the end of the semester this math prof. should be able to delete his/her courses but shouldn't be able to delete other instructors' courses.
Site admin -> Users -> Permissions -> Define Roles -> Edit teacher role
Under the "Course" heading, the "Delete courses moodle/course:delete" "Allow" checkbox is checked (despite the "Users could destroy large amounts of information...." warning). When viewing, rather than editing, it says "Allow."
It was my expectation that enabling this capability would allow a teacher to nuke his/her course(s). I further expected that this capability would probably be represented by a button (perhaps a mushroom cloud?) somewhere within the course itself.
Can you tell me where I've gone astray?