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

# Remove Reply Text

> Attempt to remove quoted reply history from plain-text email content.

The **Remove Reply Text** action cleans a common plain-text email reply format.
It removes carriage returns, looks for a line shaped like `On … wrote:`, and
strips the following quoted lines beginning with `>`.

## Inputs

| Input    | Type   | Required | Description                        |
| -------- | ------ | -------- | ---------------------------------- |
| **Text** | String | Yes      | Plain-text email content to clean. |

## Outputs

| Output         | Type   | Description                                           |
| -------------- | ------ | ----------------------------------------------------- |
| **Clean Text** | String | Trimmed text after matching reply history is removed. |

<Note>
  This is a best-effort text cleanup, not a complete email parser. Reply markers
  vary across mail clients and languages, so unmatched history can remain.
</Note>

## Example

```text theme={null}
Gmail: Get Message by ID (Plain Text)
  → Gmail: Remove Reply Text
  → Classify Clean Text
```

## Troubleshooting

<AccordionGroup>
  <Accordion title="Quoted text remains">
    The cleaner recognizes the common `On … wrote:` pattern followed by
    newline-prefixed `>` quotes. Other formats, HTML replies, and custom
    signatures are left unchanged.
  </Accordion>
</AccordionGroup>
