veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 787 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/messaging](./messaging.md) > [deleteToken](./messaging.deletetoken.md)
## deleteToken() function
Deletes the registration token associated with this messaging instance and unsubscribes the messaging instance from the push subscription.
<b>Signature:</b>
```typescript
export declare function deleteToken(messaging: FirebaseMessaging): Promise<boolean>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| messaging | [FirebaseMessaging](./messaging.firebasemessaging.md) | the messaging instance. |
<b>Returns:</b>
Promise<boolean>
The promise resolves when the token has been successfully deleted.