Added delete category if there is no page associate