---
name: "removeAllWeapons"
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/removeAllWeapons
revid: 352410
updated: 2024-02-09T15:16:20Z
---

# removeAllWeapons

*Command · Unit Inventory · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

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

## Description

Removes all weapons and magazines from the given unit. Does not remove items like map, compass, radio (see [removeWeapon](../commands/removeWeapon.md) for this).

> [!NOTE]
> Does not quite work with vehicles. If you need to remove all weapons from a vehicle, remove each weapon individually (see [removeWeapon](../commands/removeWeapon.md)).

## Syntax

```sqf
removeAllWeapons unit
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
removeAllWeapons player;
```

## See also

[removeWeapon](../commands/removeWeapon.md) · [setVehicleAmmo](../commands/setVehicleAmmo.md) · [clearWeaponCargo](../commands/clearWeaponCargo.md) · [clearMagazineCargo](../commands/clearMagazineCargo.md) · [removeAllItems](../commands/removeAllItems.md) · [removeBackpack](../commands/removeBackpack.md)

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