# RemoveFromGraph(bool)

> Removes the current variable from its graph.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
void RemoveFromGraph(bool forceRemove = false)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, removes the variable and all variable nodes referencing it. If false, removal fails if the variable is referenced in nodes.
