---
name: "camDestroy"
type: command
status: ok
groups: ["Camera Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/camDestroy
revid: 369081
updated: 2024-09-02T20:36:38Z
---

# camDestroy

*Command · Camera Control · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

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

## Description

Destroys camera object created with [camCreate](../commands/camCreate.md). This command doesn't need [camCommit](../commands/camCommit.md).

> [!IMPORTANT]
> Destroying camera object does not terminate camera effect automatically, use [cameraEffect](../commands/cameraEffect.md) prior to deleting the camera (see Example 2)

## Syntax

```sqf
camDestroy object
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
camDestroy _cam;
```

### Example 2

```sqf
_cam cameraEffect ["terminate","back"];
camDestroy _cam;
```

## See also

[camCreate](../commands/camCreate.md) · [cameraEffect](../commands/cameraEffect.md)

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