---
title: "es_clear_cache(_:)"
framework: endpointsecurity
role: symbol
role_heading: Function
path: "endpointsecurity/es_clear_cache(_:)"
---

# es_clear_cache(_:)

Clears all cached results for all clients.

## Declaration

```swift
func es_clear_cache(_ client: OpaquePointer) -> es_clear_cache_result_t
```

## Parameters

- `client`: The client that performs the request.

## Discussion

Discussion Endpoint Security shares caches across all clients, so you can provide any valid client as the parameter to this function.

## See Also

### Managing Cached Results

- [es_clear_cache_result_t](endpointsecurity/es_clear_cache_result_t.md)
