Confirmed e-Tickets can be cancelled/TDR filed up to 4 hours and partly waitlisted/RAC tickets can be cancelled/TDR filed up to 30 minutes before the scheduled departure...
Cancelling tickets due to Coronovirus threat? Check IRCTC cancellation, refund rules