The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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.