First of all, open a new demat account. Transfer all your scrips in the ICICI demat account to the new demat account filling the concerned form and handing over to ICICI. Once they are transferred to the new demat account, inform ICICI about your closure and close the account.