Account closure can be given by submitting physical form . While requesting the same you need to follow the below steps-
There should be no negative balance in your Trading Account. If there you need to clear the due balance.
You need to ensure there are no securities in your Demat account. You can either sell your holdings and withdraw your funds, or you can transfer your shares to another Demat account.