# CFX::DELETE_TRAIN

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

## Signature

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

## Parameters

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

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Deletes the specified `entity` and any carriage its attached to, or that is attached to it.

## Usage

### Lua

```lua
DeleteTrain(entity)

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

### JavaScript

```js
DeleteTrain(entity);

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

### C#

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

*Sources: Cfx.re native reference.*
