removeAllListeners

View as MarkdownOpen in Claude

removeAllListeners

  • removeAllListeners(event?)

Detaches all event listeners for the specified event.

Parameters

NameTypeDescription
event?stringName of the event (leave this undefined to detach listeners for all events). See the list of events.