<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_clear_cache(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@F@es_clear_cache"
  },
  "title" : "es_clear_cache(_:)"
}
-->

# es_clear_cache(_:)

Clears all cached results for all clients.

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

## Parameters

`client`

The client that performs the request.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)