<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/messaging](./messaging.md) &gt; [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&lt;boolean&gt;

The promise resolves when the token has been successfully deleted.

