# OBJECT::DELETE_OBJECT

- **Hash:** `0x931914268722C263`
- **Namespace:** OBJECT
- **Runtime name (Lua/JS):** `DeleteObject`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/OBJECT/DELETE_OBJECT

## Signature

```c
void DELETE_OBJECT(Object* object);
```

## Parameters

- `object` (`Object*`)

## Returns

`void`

## Description

Deletes the specified object, then sets the handle pointed to by the pointer to NULL.

## Usage

### Lua

```lua
local object = DeleteObject(object)

-- always available, by hash
local object = Citizen.InvokeNative(0x931914268722C263, Citizen.PointerValueIntInitialized(object))
```

### JavaScript

```js
const object = DeleteObject(object);

// by hash
const object = Citizen.invokeNative('0x931914268722C263', Citizen.pointerValueIntInitialized(object));
```

### C#

```csharp
var object = new OutputArgument();
Function.Call((Hash)0x931914268722C263, object);
// object.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

*Sources: alloc8or RDR3 NativeDB.*
