---
title: "stop(reason:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/neurlfiltercontrolprovider/stop(reason:)"
---

# stop(reason:)

Prepares the filter to stop, in response to a call from the framework.

## Declaration

```swift
func stop(reason: NEProviderStopReason) async throws
```

## Parameters

- `reason`: An doc://com.apple.networkextension/documentation/NetworkExtension/NEProviderStopReason that indicates why the framework is stopping the filter.

## Discussion

Discussion Override this method in your conformance to NEURLFilterControlProvider and perform whatever steps are necessary to prepare for the URL filter stopping.

## See Also

### Starting and stopping the provider

- [start()](networkextension/neurlfiltercontrolprovider/start().md)
