# removeTokenStatusListener

> Removes a registered token status listener.

Call the **removeTokenStatusListener** API to remove the token status listener when the activity gets destroyed.

> **Note**: The corresponding registration methods are `setTokenStatusListener` and `addTokenStatusListener`. The listener is matched and removed by object reference. If the specified listener was never added, this method silently does nothing.

## Method signature

```java
public void removeTokenStatusListener(@NotNull TokenStatusListener tokenStatusListener)
```

## Request parameters

| **Item** | **Type** | **Description** | **Required** |
| --- | --- | --- | --- |
| tokenStatusListener | TokenStatusListener | The token status listener instance to be removed. | Yes |

## Response parameters

N/A

## Sample

```kotlin
override fun onDestroy() {
        super.onDestroy()
        ACTapManager.getInstance(application).removeTokenStatusListener(this)
    }
```