# strip_onboarding_name_markers

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/onboarding/strip_onboarding_name_markers)

Remove every onboarding-name marker occurrence from `text`.

A partial edit can leave a lone start or end marker behind. Stripping all
marker strings before re-inserting the managed block keeps re-insertion from
producing orphaned markers that would confuse `extract_onboarding_name_block`.

## Signature

```python
strip_onboarding_name_markers(
    text: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Memory file content to sanitize. |

## Returns

`str`

`text` with all start and end marker strings removed.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/onboarding.py#L194)