Islamabad gave 1.7 million Afghans it says are living illegally in the country until November 1 to leave or be forcibly removed.