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

# Tür löschen

> Entfernt server-seitig eine Tür anhand ihrer ID.

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

### Parameter

| Name     | Datentyp | Beschreibung                   |
| -------- | -------- | ------------------------------ |
| `doorId` | integer  | Die ID der zu entfernenden Tür |

### Rückgabe

| Datentyp | Beschreibung                                        |
| -------- | --------------------------------------------------- |
| boolean  | `true`, falls die Tür entfernt wurde, sonst `false` |

## Beispiel

```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](/de/doors-creator/server/index.md)
- [Rechnung löschen](/de/billing-ui/server/delete-bill.md)
- [Tür aktualisieren](/de/doors-creator/server/update-door.md)
- [Tür geknackt](/de/doors-creator/server/lockpicked-door.md)
- [Tür erstellen](/de/doors-creator/server/create-door.md)
