How to close the demat account

What are the general steps to close any Demat account?,