---
name: "hcRemoveAllGroups"
type: command
status: ok
groups: ["High Command"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hcRemoveAllGroups
revid: 363244
updated: 2024-03-26T10:51:19Z
---

# hcRemoveAllGroups

*Command · High Command · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Remove all groups from unit's high command bar.

## Syntax

```sqf
hcRemoveAllGroups unit
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
hcRemoveAllGroups player;
```

## See also

High Command · [hcAllGroups](../commands/hcAllGroups.md) · [hcGroupParams](../commands/hcGroupParams.md) · [hcLeader](../commands/hcLeader.md) · [hcRemoveGroup](../commands/hcRemoveGroup.md) · [hcSelected](../commands/hcSelected.md) · [hcSelectGroup](../commands/hcSelectGroup.md) · [hcSetGroup](../commands/hcSetGroup.md) · [hcShowBar](../commands/hcShowBar.md) · [hcShownBar](../commands/hcShownBar.md) · [onHCGroupSelectionChanged](../commands/onHCGroupSelectionChanged.md)

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