---
title: "clearTextInputContextIdentifier(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uiresponder/cleartextinputcontextidentifier(_:)"
---

# clearTextInputContextIdentifier(_:)

Clears text input mode information from the app’s user defaults.

## Declaration

```swift
class func clearTextInputContextIdentifier(_ identifier: String)
```

## Parameters

- `identifier`: An identifier assigned to the doc://com.apple.uikit/documentation/UIKit/UIResponder/textInputContextIdentifier property of one of your responders.

## Discussion

Discussion Calling this method removes any text input mode information associated with the specified identifier from the app’s user defaults. Removing this information causes the responder to use the default text input mode again.

## See Also

### Managing the text input mode

- [textInputMode](uikit/uiresponder/textinputmode.md)
- [textInputContextIdentifier](uikit/uiresponder/textinputcontextidentifier.md)
- [inputAssistantItem](uikit/uiresponder/inputassistantitem.md)
