---
title: "Delete Agent VM"
url: https://hexelstudio.com/docs/api/compute/vms/delete
---

# Delete Agent VM

**DELETE** `/compute/v1/vms/{id}`

## Path parameters

- `id: string`

  VM ID (UUID)

## Headers

- `Authorization: string`

  `Bearer <token>`. STS access token. Obtain via POST https://sts.hexelstudio.com/token with X-API-Key header.

## Returns

`204` No Content

## Errors

- `404` Not Found

## Example

```bash
curl --request DELETE \
  --url 'https://compute.hexelstudio.com/compute/v1/vms/{id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (404)

```json
{
  "code": 0,
  "error_code": "string",
  "message": "string"
}
```
