Home > @firebase/messaging > deleteToken
deleteToken() function
Deletes the registration token associated with this FirebaseMessaging
instance and unsubscribes the FirebaseMessaging
instance from the push subscription.
Signature:
export declare function deleteToken(messaging: FirebaseMessaging): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
messaging | FirebaseMessaging | The FirebaseMessaging instance. |
Returns:
Promise<boolean>
The promise resolves when the token has been successfully deleted.