obspy.core.event.Catalog.clear

Catalog.clear()

Clears event list (convenient method).

Example

>>> from obspy.core.event import read_events
>>> cat = read_events()
>>> len(cat)
3
>>> cat.clear()
>>> cat.events
[]