# RemoveFunction(string)

Method in [DialogueRunner](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.dialoguerunner)

## 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

* [IActionRegistration.AddFunction(string,Delegate)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.iactionregistration/yarn.unity.iactionregistration.addfunction): Add a new function that returns a value, so that it can be called from Yarn scripts.
