> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encorekit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# clearLanguage()

> Remove the language set with setLanguage() so Encore copy follows the device language again

Removes the language you set with [`setLanguage()`](./set-language), so Encore serves copy in the device's language again. Every other attribute and the current user stay as they are.

<Note>
  New in Android SDK 2.3.0. React Native and Flutter forward it from the release that pins native 2.3.0.
</Note>

## Signature

```kotlin theme={null}
fun clearLanguage()
```

## Parameters

This method takes no parameters.

## Behavior

* When a language was set, the SDK removes it and fetches its configuration and offers again.
* When no language was set, or before [`configure()`](./configure), the call does nothing.
* It is the only call that removes the language. [`reset()`](./reset) and logout leave it in place.
* It also removes a language set through the deprecated `language` attribute.
* The SDK always sends the device language as `Accept-Language`. This call only removes the override that outranks it.

## Usage

Call it when the user picks "System default" in your app's own language picker:

```kotlin theme={null}
fun onLanguageChanged(code: String?) {
    if (code != null) {
        Encore.shared.setLanguage(code)
    } else {
        Encore.shared.clearLanguage()
    }
}
```

## Related

* [setLanguage()](./set-language): set a language override
* [Localization](/publishers/concepts/localization): how Encore picks the language it serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.