# remove_prefix

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/chains/graph_qa/kuzu/remove_prefix)

Remove a prefix from a text.

## Signature

```python
remove_prefix(
    text: str,
    prefix: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Text to remove the prefix from. |
| `prefix` | `str` | Yes | Prefix to remove from the text. |

## Returns

`str`

Text with the prefix removed.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/chains/graph_qa/kuzu.py#L22)