If your ticket is booked online then you have to do nothing, your ticket will automatically cancelled and your refund will be credited to your account which is use for making payment.
If you have counter ticket you have to visit PRS counter and cancel the ticket, Cancellation charges will be deducted and remainig amount will be retuned back to you.