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

# purgeCustomerCache

> Clear the persistent cache for a customer and optionally a resource.



**mutation** `purgeCustomerCache(input: ClearCustomerPersistentCacheInput!): String!`

## Arguments

**`input`**: `ClearCustomerPersistentCacheInput!` (required)

Input for clearing a customers persistent cache.

## Returns

`String!`

## Examples

```graphql Mutation
mutation PurgeCustomerCache($input: ClearCustomerPersistentCacheInput!) {
  purgeCustomerCache(input: $input)
}
```

```json Variables
{
  "input": {
    "customerId": "string"
  }
}
```

```json Response
{
  "data": {
    "purgeCustomerCache": "string"
  }
}
```


## Related topics

- [ClearCustomerPersistentCacheInput](https://docs.stigg.io/graphql-reference/types/ClearCustomerPersistentCacheInput.md)
- [Persistent Cache Service](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/persistent-cache.md)
- [Customer portal](https://docs.stigg.io/documentation/snap-in-widgets/customer-portal.md)
- [Provisioning customers](https://docs.stigg.io/guides/quick-start-guides/provisioning-customers.md)
- [Persistent cache](https://docs.stigg.io/documentation/high-availability-and-scale/persistent-caching.md)


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