# CFX::DELETE_ENTITY

- **Hash:** `0xFAA3D236`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `DeleteEntity`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/DELETE_ENTITY

## Signature

```c
void DELETE_ENTITY(Entity entity);
```

## Parameters

- `entity` (`Entity`) — The entity to delete.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Deletes the specified entity.

**NOTE**: For trains this will only work if called on the train engine, it will not work on its carriages.

## Usage

### Lua

```lua
DeleteEntity(entity)

-- always available, by hash
Citizen.InvokeNative(0xfaa3d236, entity)
```

### JavaScript

```js
DeleteEntity(entity);

// by hash
Citizen.invokeNative('0xfaa3d236', entity);
```

### C#

```csharp
Function.Call((Hash)0xfaa3d236, entity);
```

*Sources: Cfx.re native reference.*
