---
name: "lbDelete"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/lbDelete
revid: 364178
updated: 2024-05-05T10:46:45Z
---

# lbDelete

*Command · GUI Control - ListBox · Arma 3 v0.50 · introduced in Operation Flashpoint v1.75*

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

## Description

Removes the item with the given index from the CT_LISTBOX, CT_COMBO or CT_TOOLBOX.

## Syntax

### Syntax 1

```sqf
lbDelete [idc, index]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - control IDC
- `index`: [Number](../topics/Number.md)

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

### Syntax 2

```sqf
control lbDelete index
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `index`: [Number](../topics/Number.md)

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

## Examples

### Example 1

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

### Example 2

```sqf
_control lbDelete 0;
```

## See also

[lbAdd](../commands/lbAdd.md) · [lbClear](../commands/lbClear.md)

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