<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIResponder/clearTextInputContextIdentifier(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIResponder(cm)clearTextInputContextIdentifier:"
  },
  "title" : "clearTextInputContextIdentifier(_:)"
}
-->

# clearTextInputContextIdentifier(_:)

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

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

## Parameters

`identifier`

An identifier assigned to the [`textInputContextIdentifier`](/documentation/UIKit/UIResponder/textInputContextIdentifier) property of one of your responders.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)