---
title: invalidate()
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: browserenginekit/beextensionprocess/invalidate()
---

# invalidate()

Stops the extension process.

## Declaration

```swift
func invalidate()
```

## Discussion

Discussion Call this method to signal to the system your app no longer needs the extension process. If this is the last connection from the system to the extension, the system ends the extension process.

## See Also

- [makeLibXPCConnectionError()](browserenginekit/beextensionprocess/makelibxpcconnectionerror().md)
