remove users from a course before deleting the course