API Frame UnregisterAllEvents

Unregisters all events that the object is currently monitoring. obj:UnregisterAllEvents;

Example
myChatAddon:UnregisterAllEvents;

Result
Code in the  section of your addon would no longer fire.