---
title: invalidate()
framework: ContactProvider
role: symbol
role_heading: Instance Method
platforms: [iOS 18.0+, iPadOS 18.0+]
path: contactprovider/contactproviderextension/invalidate()
---

# invalidate()

Invalidates the extension.

## Declaration

```swift
func invalidate() async throws
```

## Discussion

Discussion The system calls this method before terminating the extension. The extension may complete termination before this method returns.
