---
name: "deleteCollection"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/deleteCollection
revid: 353153
updated: 2024-03-12T12:48:32Z
---

# deleteCollection

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Delete a collection. As example, used with a soldier, it'll hide the ingame model.

*When targetting Arma 2 1.06 or newer, use [hideObject](../commands/hideObject.md) instead. This function is a relic from dynamic building destruction development. It is left only for compatibility with scripts created before Arma 2 1.06, and its functionality may be changed or removed in the future.*

## Syntax

```sqf
deleteCollection object
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
deleteCollection unitName;
```

## See also

[hideObject](../commands/hideObject.md) · [hideObjectGlobal](../commands/hideObjectGlobal.md) · [isObjectHidden](../commands/isObjectHidden.md)

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