delete course and category models