Project: moodle
Issue MDL-52561: Plan created from cohort and deleted are recreated by sync task
When we delete a user plan created from a template and a cohort all information associated to the plan is deleted from the database. So when the scheduled task to sync plans runs, it recreates the plan because there is no way to know that the plan was there before.
Story points: 1