Deactivating Events - Registration Cancellation Notice
This could either already solve your question and if not give a very good idea of where to look: https://civicrm.org/extensions/prevent-sending-event-registration-confirmation-back-office