---
name: "removePrimaryWeaponItem"
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/removePrimaryWeaponItem
revid: 347501
updated: 2023-09-24T01:03:45Z
---

# removePrimaryWeaponItem

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

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

## Description

Removes given weapon item, including magazine, from the [primaryWeapon](../commands/primaryWeapon.md).

## Syntax

```sqf
unit removePrimaryWeaponItem item
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
player removePrimaryWeaponItem "acc_flashlight";
```

## See also

[addPrimaryWeaponItem](../commands/addPrimaryWeaponItem.md) · [removeAllPrimaryWeaponItems](../commands/removeAllPrimaryWeaponItems.md) · [removeSecondaryWeaponItem](../commands/removeSecondaryWeaponItem.md) · [removeHandgunItem](../commands/removeHandgunItem.md) · [removeBinocularItem](../commands/removeBinocularItem.md)

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