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

> Supprime une porte côté serveur par son ID.

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

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `doorId` | integer | L'ID de la porte à supprimer |

### Valeur de retour

| Type de donnée | Description |
| - | - |
| boolean | `true` si la porte a été supprimée, `false` sinon |

## Exemple

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