# Remove()

> Removes this instance from the NavMesh system.

## Definition

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

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

### Remarks

An identical but convenient alternative to calling [NavMesh.RemoveNavMeshData](/engine/6000.5/script-reference/unityengine/ai/navmesh/removenavmeshdata.md). If the instance is not valid, e.g. has been removed before, the call has no effect.
