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

# es_unsubscribe_all(_:)

Unsubscribes a client from all events.

## Declaration

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

## Parameters

- `client`: The client to unsubscribe.

## Return Value

Return Value A value that indicates whether subscribing succeeded. ES_RETURN_ERROR indicates that the caller couldn’t reach the Endpoint Security subsystem or that the request was invalid.

## See Also

### Subscribing to Events

- [es_subscribe(_:_:_:)](endpointsecurity/es_subscribe(_:_:_:).md)
- [es_subscriptions(_:_:_:)](endpointsecurity/es_subscriptions(_:_:_:).md)
- [es_unsubscribe(_:_:_:)](endpointsecurity/es_unsubscribe(_:_:_:).md)
- [es_event_type_t](endpointsecurity/es_event_type_t.md)
