---
name: "tvDelete"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "0.74"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/tvDelete
revid: 378380
updated: 2026-04-04T04:46:06Z
---

# tvDelete

*Command · GUI Control - Tree View · Arma 3 v0.74*

Locality: arguments **local** · effect **local**

## Description

Removes an item with given [Tree View Path](../topics/Tree_View_Path.md) from Tree View.

> [!IMPORTANT]
> The paths of other items on the same branch after delete operation are updated accordingly; therefore, when deleting multiple entries, start with the one with the highest index and proceed in reverse order.

## Syntax

### Syntax 1

```sqf
tvDelete [idc, path]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md)

**Returns:** [Nothing](../topics/Nothing.md)

### Syntax 2

```sqf
control tvDelete path
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
tvDelete [101, [0, 0]];
```

### Example 2

```sqf
_ctrl tvDelete [0, 0];
```

## See also

[tvAdd](../commands/tvAdd.md) · [tvClear](../commands/tvClear.md) · [tvCollapse](../commands/tvCollapse.md) · [tvCount](../commands/tvCount.md) · [tvCurSel](../commands/tvCurSel.md) · [tvData](../commands/tvData.md) · [tvExpand](../commands/tvExpand.md) · [tvPicture](../commands/tvPicture.md) · [tvSetCurSel](../commands/tvSetCurSel.md) · [tvSetData](../commands/tvSetData.md) · [tvSetPicture](../commands/tvSetPicture.md) · [tvSetValue](../commands/tvSetValue.md) · [tvSort](../commands/tvSort.md) · [tvSortByValue](../commands/tvSortByValue.md) · [tvText](../commands/tvText.md) · [tvValue](../commands/tvValue.md)

<sub>Source: [BI Community Wiki — tvDelete](https://community.bistudio.com/wiki/tvDelete) (revision 378380).</sub>
