# RemoveAllNavMeshData()

> Removes all NavMesh surfaces and links from the game.

## Definition

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

```csharp
public static void RemoveAllNavMeshData()
```

### Remarks

Unloads all surfaces and links that have been loaded from the Scene or added with [NavMesh.AddNavMeshData](/engine/6000.7/script-reference/unityengine/ai/navmesh/addnavmeshdata.md) or [NavMesh.AddLink](/engine/6000.7/script-reference/unityengine/ai/navmesh/addlink.md) and frees all the internal resources associated with the NavMesh.

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