voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 828 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 `FirebaseMessaging` instance and unsubscribes the `FirebaseMessaging` 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 <code>FirebaseMessaging</code> instance. |
<b>Returns:</b>
Promise<boolean>
The promise resolves when the token has been successfully deleted.