> ## 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**](https://primer.io/docs/sdk/ios/v2.x.x/common-objects/PrimerSettings.md#param-client-session-caching-enabled) is set to `true`, calling **cleanUp** will also clear the cache.

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.