> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.unity/yarn.unity.dialoguerunner/yarn.unity.dialoguerunner.removefunction.md).

# RemoveFunction(string)

Method in [DialogueRunner](/2.2/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md)

## Summary

Remove a registered function.

```csharp
public void RemoveFunction(string name);
```

## Remarks

After a function has been removed, it cannot be called from Yarn scripts.

## Parameters

| Name          | Description                         |
| ------------- | ----------------------------------- |
| `string` name | The name of the function to remove. |

## See Also

* AddFunction\<TResult>(string, Func\<TResult>)
