How to transfer all shares from one demat to another

What is the procedure to transfer all shares from one Demat account to another?,