# DeleteCells

> Removes cells from within the Tilemap 's bounds.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.7/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

## DeleteCells(Vector3Int, Vector3Int)

Removes cells from within the [Tilemap](/engine/6000.7/script-reference/unityengine/tilemaps/tilemap.md)'s bounds.

```csharp
public void DeleteCells(Vector3Int position, Vector3Int deleteCells)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.7/script-reference/unityengine/vector3int)): The target position to remove from.**** (\[Vector3Int]\(/engine/6000.7/script-reference/unityengine/vector3int)): The number of columns, rows and layers of cells to remove.

## DeleteCells(Vector3Int, int, int, int)

Removes cells from within the [Tilemap](/engine/6000.7/script-reference/unityengine/tilemaps/tilemap.md)'s bounds.

```csharp
public void DeleteCells(Vector3Int position, int numColumns, int numRows, int numLayers)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.7/script-reference/unityengine/vector3int)): Target position to delete from.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of columns to remove.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of rows to remove.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of layers of cells to remove.
