---
name: "removeAllAssignedItems"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/removeAllAssignedItems
revid: 352419
updated: 2024-02-09T15:26:08Z
---

# removeAllAssignedItems

*Command · Unit Inventory · Arma 3 v0.50*

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

## Description

Unassigns and deletes all linked items from inventory.
The commands operates on [assignedItems](../commands/assignedItems.md) array, which does not include goggles or headgear but includes binoculars, which is a weapon.

Use [removeGoggles](../commands/removeGoggles.md) and [removeHeadgear](../commands/removeHeadgear.md) for those.

## Syntax

### Syntax 1

```sqf
removeAllAssignedItems unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

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

### Syntax 2

*since arma3 2.14*

```sqf
removeAllAssignedItems [unit, allItems, includeBinocs]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - soldier
- `allItems`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to include all slot items, [false](../commands/false.md) exclude goggles and headgear
- `includeBinocs`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to include binoculars (which is a weapon), [false](../commands/false.md) to exclude it

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

## Examples

### Example 1

```sqf
removeAllAssignedItems player;
```

## See also

[assignedItems](../commands/assignedItems.md) · [linkItem](../commands/linkItem.md) · [unlinkItem](../commands/unlinkItem.md) · [assignItem](../commands/assignItem.md) · [unassignItem](../commands/unassignItem.md) · [addItem](../commands/addItem.md) · [removeItem](../commands/removeItem.md) · [removeAllContainers](../commands/removeAllContainers.md)

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