Project: moodle
Issue MDL-52676: When deleting a template delete associated template_cohorts
Deleting a template should not leave template_cohorts behind.
Story points: 1