---
name: "deleteVehicle"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/deleteVehicle
revid: 352346
updated: 2024-02-08T14:01:50Z
---

# deleteVehicle

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint v1.34*

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

## Description

Deletes an object. Only objects inserted in the mission editor and objects created during the game's progress can be deleted by this command. Terrain objects and players cannot be deleted.

> [!NOTE]
> The actual object deletion, when the object becomes [objNull](../commands/objNull.md), happens on the next frame after command execution, but there are some object modifications that happen immediately. For example if the object is a unit in a group, it immediately becomes groupless (`isNull group _unit; // true`).

## Syntax

### Syntax 1

```sqf
deleteVehicle object
```

**Parameters:**

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

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

### Syntax 2

*since arma3 2.18*

```sqf
deleteVehicle objects
```

**Parameters:**

- `objects`: [Array](../topics/Array.md) of [Object](../topics/Object.md)s

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

## Examples

### Example 1

```sqf
deleteVehicle _house1;
```

### Example 2

Deleting a vehicle with crew:

```sqf
// might want to make sure that the car is local
{ car deleteVehicleCrew _x } forEach crew car;
deleteVehicle car;
```

## Problems

> [!WARNING]
> Use [deleteVehicleCrew](../commands/deleteVehicleCrew.md) to delete units that are in a vehicle! Do **not** use this command for a vehicle's [crew](../commands/crew.md) members as it may lead to all sorts of bugs and ghost objects left on the map.

## See also

[deleteVehicleCrew](../commands/deleteVehicleCrew.md) · [createUnit](../commands/createUnit.md) · [createVehicleLocal](../commands/createVehicleLocal.md) · [createVehicle](../commands/createVehicle.md) · [Arma 3: Event Handlers](../topics/Event_Handlers.md)

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