---
title: "clearTextSubstitution"
description: "Action to clear the text substitution of this node.

Expected to be used on non-editable text."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsPropertyReceiver.clearTextSubstitution(
    label: String? = null,
    action: (() -> Boolean)?,
)
```


Action to clear the text substitution of this node.

Expected to be used on non-editable text.

#### Parameters

| | |
| --- | --- |
| label | Optional label for this action. |
| action | Action to be performed when `SemanticsActions.ClearTextSubstitution` is called. |




