# Remove()

> Removes this instance from the game.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.AI](/engine/6000.7/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

> **Warning:**
>
> **Deprecated.** Remove() has been deprecated. Use NavMesh.RemoveLink() instead.

```csharp
public void Remove()
```

### Remarks

This method is an identical but convenient alternative to [NavMesh.RemoveLink](/engine/6000.7/script-reference/unityengine/ai/navmesh/removelink.md). If the instance is not valid, e.g. has already been removed, the call has no effect.

Additional Resources: [NavMesh.AddLink](/engine/6000.7/script-reference/unityengine/ai/navmesh/addlink.md), [NavMesh.RemoveLink](/engine/6000.7/script-reference/unityengine/ai/navmesh/removelink.md)
