---
title: "pushRegistry(_:didInvalidatePushTokenFor:)"
framework: pushkit
role: symbol
role_heading: Instance Method
path: "pushkit/pkpushregistrydelegate/pushregistry(_:didinvalidatepushtokenfor:)"
---

# pushRegistry(_:didInvalidatePushTokenFor:)

Tells the delegate that the system invalidated the push token for the specified type.

## Declaration

```swift
optional func pushRegistry(_ registry: PKPushRegistry, didInvalidatePushTokenFor type: PKPushType)
```

## Parameters

- `registry`: The doc://com.apple.pushkit/documentation/PushKit/PKPushRegistry instance responsible for the delegate callback.
- `type`: This is a doc://com.apple.pushkit/documentation/PushKit/PKPushType constant, which is present in [registry desiredPushTypes].

## Discussion

Discussion The system calls this method when a previously provided push token is no longer valid for use. No action is necessary on your part to reregister the push type. Instead, use this method to notify your server not to send push notifications using the matching push token.

## See Also

### Responding to Registration Events

- [pushRegistry(_:didUpdate:for:)](pushkit/pkpushregistrydelegate/pushregistry(_:didupdate:for:).md)
