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

# es_mute_path(_:_:_:)

Suppresses events from executables that match a given path.

## Declaration

```swift
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

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

## Discussion

Discussion To mute a subset of events from a path, use es_mute_path_events(_:_:_:_:_:).

## See Also

### Muting Events

- [es_mute_process(_:_:)](endpointsecurity/es_mute_process(_:_:).md)
- [es_mute_process_events(_:_:_:_:)](endpointsecurity/es_mute_process_events(_:_:_:_:).md)
- [es_muted_processes_t](endpointsecurity/es_muted_processes_t.md)
- [es_release_muted_processes(_:)](endpointsecurity/es_release_muted_processes(_:).md)
- [es_muted_processes_events(_:_:)](endpointsecurity/es_muted_processes_events(_:_:).md)
- [es_mute_path_events(_:_:_:_:_:)](endpointsecurity/es_mute_path_events(_:_:_:_:_:).md)
- [es_mute_path_type_t](endpointsecurity/es_mute_path_type_t.md)
- [es_muted_paths_events(_:_:)](endpointsecurity/es_muted_paths_events(_:_:).md)
- [es_muted_paths_t](endpointsecurity/es_muted_paths_t.md)
- [es_release_muted_paths(_:)](endpointsecurity/es_release_muted_paths(_:).md)
