# Deactivate Profile

{% hint style="warning" %}
This function is currently only supported from Android 10.0+.
{% endhint %}

The `deactivateEsimProfile` function can be used to deactivate the current active eSIM profile on the device. It returns success or an error.

{% hint style="warning" %}
This query may take some time to complete.
{% endhint %}

```
StraicSDK.deactivateEsimProfile { success, error ->
    Log.i( "StraicSDK", "Success: $success")  
    Log.i( "StraicSDK", "Error: $error") 
}
```
