How to sell shares through demat account

What steps are needed to sell shares via demat account?,