Version 7 was just released! The docs will be moved here soon. Visit the external v7 docs site
edit doc

EventSource::remove

Removes all events associated with this source and prevents it from being fetched again.

eventSource.remove()

Must be called on an Event Source instance. See getEventSources and getEventSourceById.