# DeleteVertex(PolygonGeometry, int)

> Delete a vertex from the geometry returning a new geometry with updated normals and centroid.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public static PolygonGeometry DeleteVertex(PolygonGeometry geometry, int index)
```

### Parameters

**** (\[PolygonGeometry]\(/engine/6000.5/script-reference/unity/u2d/physics/polygongeometry)): The geometry to adjust.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The vertex index to delete.

### Returns

| Type                                                                                    | Description                               |
| --------------------------------------------------------------------------------------- | ----------------------------------------- |
| [PolygonGeometry](/engine/6000.5/script-reference/unity/u2d/physics/polygongeometry.md) | The new geometry with the deleted vertex. |
