If its E-Ticket it will get automatically cancelled and you will be deducted clerical charges of Rs.30/- per pax + IRCTC Charges + Bank charges.
.
If its PRS or I-Ticket you visit counter to cancel it only clerical charges of Rs.30/- per pax shall be deducted and rest shall be refunded. For I-Ticket no cash refund it shall go to your account of booking but you will get receipt of cancellation and amount of refund details at counter.