---
name: "removeMagazines"
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/removeMagazines
revid: 373502
updated: 2025-05-18T11:00:18Z
---

# removeMagazines

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

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

## Description

Removes all magazines of given type from the unit. If magazine class does not exist, nothing happens, not even .rpt message, unlike with [addMagazine](../commands/addMagazine.md) command.

## Syntax

```sqf
unitName removeMagazines magazineName
```

**Parameters:**

- `unitName`: [Object](../topics/Object.md)
- `magazineName`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
player removeMagazines "30Rnd_556x45_Stanag";
```

## See also

[removeAllMagazines](../commands/removeAllMagazines.md) · [addMagazine](../commands/addMagazine.md) · [magazines](../commands/magazines.md) · [removeMagazine](../commands/removeMagazine.md) · [removeWeapon](../commands/removeWeapon.md) · [removeMagazinesTurret](../commands/removeMagazinesTurret.md) · [removeMagazineTurret](../commands/removeMagazineTurret.md) · [setVehicleAmmo](../commands/setVehicleAmmo.md)

## Community notes

**Pyro05x** — 2007-01-27

Though BIS did not provide a command to remove **all** magazines of every type, it can still be accomplished using [forEach](../commands/forEach.md) [magazines](../commands/magazines.md).
example:

```sqf
{ player removeMagazine _x } forEach magazines player;
```

**edit:** `removeAllMagazines player;` now exists since Arma 3 v2.20.

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