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

# es_mute_path_prefix(_:_:)

Suppresses events from executables matching a path prefix.

```
func es_mute_path_prefix(_ client: OpaquePointer, _ path_prefix: UnsafePointer<CChar>) -> es_return_t
```

## Parameters

`client`

The client for which to mute events.

`path_prefix`

A prefix string. The client stops receiving events from executables whose paths begin with this string.

---

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)