> For the complete documentation index, see [llms.txt](https://cloudblast.gitbook.io/cloudblast-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cloudblast.gitbook.io/cloudblast-api/api-endpoints/delete-server.md).

# /delete-server

## Delete Server

<mark style="color:green;">`POST`</mark> [`https://console.cloudblast.io/api/public/delete-server`](http://cloudblast.local/api/public/delete-server)

This endpoint allows users to delete an existing virtual private server (VPS) from their Cloudblast account.

**Body**

| Name        | Type   | Description                    |
| ----------- | ------ | ------------------------------ |
| `authKey`   | string | Your API Key                   |
| `server_id` | int    | The ID of the server to delete |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "message": "Server deleted.",
}
```

{% endtab %}

{% tab title="500" %}

```json
{
  "error": "Server not found or does not belong to the authenticated user."
}
```

{% endtab %}
{% endtabs %}
