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

# es_unsubscribe_all(_:)

Unsubscribes a client from all events.

```
func es_unsubscribe_all(_ client: OpaquePointer) -> es_return_t
```

## Parameters

`client`

The client to unsubscribe.

## Return Value

A value that indicates whether subscribing succeeded. [`ES_RETURN_ERROR`](/documentation/EndpointSecurity/ES_RETURN_ERROR) indicates that the caller couldn’t reach the Endpoint Security subsystem or that the request was invalid.

## Discussion

---

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)