> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/doors-creator/server/delete-door.md).

# Delete door

## Export

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