Delete associated information when deleting a course