---
title: reset()
framework: eventkit
role: symbol
role_heading: Instance Method
path: eventkit/ekeventstore/reset()
---

# reset()

Reverts the event store to its saved state.

## Declaration

```swift
func reset()
```

## Discussion

Discussion This method updates all the properties of all the objects with their corresponding values in the event store. Any local changes that aren’t saved before invoking this method are lost. All existing objects created or retrieved using this store are disassociated from it and are invalid.

## See Also

### Saving and restoring state

- [commit()](eventkit/ekeventstore/commit().md)
- [refreshSourcesIfNecessary()](eventkit/ekeventstore/refreshsourcesifnecessary().md)
