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

# es_mute_path(_:_:_:)

Suppresses events from executables that match a given path.

```
func es_mute_path(_ client: OpaquePointer, _ path: UnsafePointer<CChar>, _ type: es_mute_path_type_t) -> es_return_t
```

## Parameters

`client`

A previously-created client. If the call succeeds, this client no longer receives events from executables whose paths match `path`.

`path`

The path to mute. The client stops receiving events from executables whose paths match this string.

`type`

The type of the `path` argument, either a prefix or a literal path.

## Return Value

A value that indicates whether the mute request succeeded or failed with an error.

## Discussion

To mute a subset of events from a path, use [`es_mute_path_events(_:_:_:_:_:)`](/documentation/EndpointSecurity/es_mute_path_events(_:_:_:_:_:)).

---

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)