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

# removeAllPrimaryWeaponItems

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

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

## Description

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

## Syntax

```sqf
removeAllPrimaryWeaponItems unit
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
removeAllPrimaryWeaponItems player;
```

## See also

[addPrimaryWeaponItem](../commands/addPrimaryWeaponItem.md) · [removePrimaryWeaponItem](../commands/removePrimaryWeaponItem.md) · [removeAllSecondaryWeaponItems](../commands/removeAllSecondaryWeaponItems.md) · [removeAllHandgunItems](../commands/removeAllHandgunItems.md) · [removeAllBinocularItems](../commands/removeAllBinocularItems.md)

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