> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete door

> Elimina una puerta del lado servidor por su ID.

```lua Export theme={null}
exports["doors_creator"]:deleteDoor(doorId)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `doorId` | integer | El ID de la puerta a eliminar |

### Valor de retorno

| Tipo de dato | Descripción |
| - | - |
| boolean | `true` si la puerta fue eliminada, `false` en caso contrario |

## Ejemplo

```lua theme={null}
Citizen.CreateThread(function()
    local doorId = 55

    local success = exports["doors_creator"]:deleteDoor(doorId)

    if success then
        print("Door with ID " .. doorId .. " has been removed")
    else
        print("Failed to remove door with ID " .. doorId)
    end
end)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.