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

# es_delete_client(_:)

Destroys and disconnects a client instance from the Endpoint Security system.

## Declaration

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

## Parameters

- `client`: The client to destroy.

## Return Value

Return Value A value indicating whether deletion succeeded. ES_RETURN_ERROR indicates that shutdown encountered an error, which results in a resource leak.
