---
title: sflt_unregister
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1433241-sflt_unregister
---

# sflt_unregister

## Declaration

```occ
errno_t sflt_unregister(sflt_handle handle);
```

## Parameters

- `handle`: The sf_handle of the socket filter to unregister.

## Return Value

Return Value 0 on success otherwise the errno error.

## Discussion

Discussion Unregisters a socket filter. This will not detach the socket filter from all sockets it may be attached to at the time, it will just prevent the socket filter from being attached to any new sockets.
