> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# cleanUp

Use the cleanUp method to reset the state of **PrimerHeadlessUniversalCheckout**.

When [**clientSessionCachingEnabled**](/sdk/ios/v2.x.x/common-objects/PrimerSettings#param-client-session-caching-enabled) is set to `true`, calling **cleanUp** will also clear the cache.

```swift SWIFT theme={"dark"}
func cleanUp()
```
