---
name: "removeAllSecondaryWeaponItems"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "2.02"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/removeAllSecondaryWeaponItems
revid: 310170
updated: 2022-05-05T13:10:24Z
---

# removeAllSecondaryWeaponItems

*Command · Unit Inventory · Arma 3 v2.02*

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

## Description

Removes all items from [secondaryWeapon](../commands/secondaryWeapon.md), except magazine.

## Syntax

```sqf
removeAllSecondaryWeaponItems unit
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
removeAllSecondaryWeaponItems player;
```

## See also

[addSecondaryWeaponItem](../commands/addSecondaryWeaponItem.md) · [removeSecondaryWeaponItem](../commands/removeSecondaryWeaponItem.md) · [removeAllPrimaryWeaponItems](../commands/removeAllPrimaryWeaponItems.md) · [removeAllHandgunItems](../commands/removeAllHandgunItems.md) · [removeAllBinocularItems](../commands/removeAllBinocularItems.md)

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