e-Invoice can be cancelled within 24 hrs of reporting the invoice to IRP. However, if the e-Way bill is generated for this invoice then e-Way bill must be cancelled first before cancelling the e-Invoice.
In case of cancellation of e-Invoice, GSTR-1 will be automatically updated with status as cancelled.