If it is e-ticket, wait for the information to be updated in irctc website and then cancel citing reason train cancelled. And if counter ticket, then approach prs for cancellation. No money other than clerical charges would be deducted in either of the cases.