handle course badges when course is deleted