# Delete server

```http
DELETE /servers/{server_id}
```

Start deleting a server. API keys need delete scope.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                       |
| ------------------- | ----- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `server_id`         | path  | Yes      | ID of a server you own. Deleting it requires project.runtime.manage on every project linked to the server. If none are linked, no project capability is required. |
| `project_reference` | query |          |                                                                                                                                                                   |

## Responses

| Status | Description                                                           |
| ------ | --------------------------------------------------------------------- |
| 200    | Server marked for deletion. This does not confirm completed deletion. |
| 400    | Bad request                                                           |
| 401    | Unauthorized                                                          |
| 403    | Linked-project or project capability, or API-key delete scope, denied |
| 404    | Server not found, not owned by the caller or not in the project       |
| 500    | Server error                                                          |
