---
name: "isGroupDeletedWhenEmpty"
type: command
status: ok
groups: ["Groups"]
arma3_since: "1.68"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isGroupDeletedWhenEmpty
revid: 364533
updated: 2024-05-16T20:46:45Z
---

# isGroupDeletedWhenEmpty

*Command · Groups · Arma 3 v1.68*

## Description

Checks if the given group marked for auto-deletion when empty. See [deleteGroupWhenEmpty](../commands/deleteGroupWhenEmpty.md).

> [!NOTE]
> It might take up to a minute for the groups marked for auto-deletion when empty to get deleted when they become empty.

> [!IMPORTANT]
> This command is only a getter for the deleteWhenEmpty flag in [createGroup](../commands/createGroup.md) command or [deleteGroupWhenEmpty](../commands/deleteGroupWhenEmpty.md) command. All it does is it shows what the flag was set to during group creation. [True](../commands/true.md) does not mean the group will be deleted but that it was suggested to the engine that it should be deleted. It is up to the engine how it manages groups. [False](../commands/false.md) does not mean that the group will not be deleted **at all**. It has no influence on the engine functionality whatsoever.

## Syntax

```sqf
isGroupDeletedWhenEmpty group
```

**Parameters:**

- `group`: [Group](../topics/Group.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) the group is marked for auto-deletion when empty

## Examples

### Example 1

```sqf
_isMarked = isGroupDeletedWhenEmpty _group;
```

## See also

[deleteGroup](../commands/deleteGroup.md) · [deleteGroupWhenEmpty](../commands/deleteGroupWhenEmpty.md) · [createGroup](../commands/createGroup.md) · [group](../commands/group.md) · [setGroupId](../commands/setGroupId.md) · groupID · [units](../commands/units.md) · [groupFromNetId](../commands/groupFromNetId.md) · [netId](../commands/netId.md) · [leader](../commands/leader.md) · [selectLeader](../commands/selectLeader.md) · [join](../commands/join.md) · [createCenter](../commands/createCenter.md) · [createUnit](../commands/createUnit.md) · [createVehicle](../commands/createVehicle.md) · [Side](../topics/Side.md)

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