> ## 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

> Remove a door server side by its ID.

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

### Parameters

| Name     | Data Type | Description                  |
| -------- | --------- | ---------------------------- |
| `doorId` | integer   | The ID of the door to remove |

### Returns

| Data Type | Description                                       |
| --------- | ------------------------------------------------- |
| boolean   | `true` if the door was removed, `false` otherwise |

## Example

```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)
```


## Related topics

- [Server](/doors-creator/server/index.md)
- [Delete bill](/billing-ui/server/delete-bill.md)
- [Update door](/doors-creator/server/update-door.md)
- [Create door](/doors-creator/server/create-door.md)
- [Lockpicked door](/doors-creator/server/lockpicked-door.md)
