Cohort drama

Cohort drama

by Pete Langshaw -
Number of replies: 1

Call me stupid or careless ... or whatever ... but ...

I may have accidentally created more than 500 cohorts I really, really don't want. 

Does a plugin, script or whatever exist that will help me delete them without performing 3 clicks for each cohort?

Ta

Running: Moodle release (3.5)


Average of ratings: -
In reply to Pete Langshaw

Re: Cohort drama

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If (as I suspect is the case) they have never had members added or been used for anything you *could* just delete them from the database. The 'mdl_cohort' table has a 'timecreated' time stamp so you just need to delete everything after the time you created them.

I would strongly advise you to take a full backup before embarking on this plan of action.
Average of ratings: Useful (1)