For canceling the IEC you need to first initiate a formal request to the DGFT online and on the receipt of such intimation the authorities will cancel it