How can i close my demat account

What is the step-by-step method to close a demat account?