# Remove Trusted Device

You can remove the current device from being a trusted device.

{% hint style="info" %}
**In the future,** you can also revoke other trusted devices from any trusted device.
{% endhint %}

### Removing this Trusted Device

To remove the current device from being a trusted device, do the following:

```java
TrustedDeviceHelper.removeDevice(this, new Callback() {
    @Override
    public void onSuccess(JSONObject result) {
        Toast.makeText(getApplicationContext(), result.toString(), Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onError(String error) {
        Toast.makeText(getApplicationContext(), error, Toast.LENGTH_SHORT).show();
    }
});
```

{% hint style="info" %}
You cannot remove the last Trusted Device. You will need to have 1 remaining Trusted Device.
{% endhint %}
