You're viewing the v7 docs. Upgrading from v6?
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.