## Delete a stack

**delete** `/api/v1/stacks/{stack_id}`

Deletes the stack for good; requests naming its `model_id` fail afterwards. To stop it serving and keep it, update its `status` to `inactive`.

### Path Parameters

- `stack_id: string`

### Returns

- `id: string`

- `object: "stack.deleted"`

  - `"stack.deleted"`

- `deleted: boolean`

  Always `true`.

### Example

```http
curl https://api.prod.adaptionlabs.ai/api/v1/stacks/$STACK_ID \
    -X DELETE \
    -H "Authorization: Bearer $ADAPTION_API_KEY"
```

#### Response

```json
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "object": "stack.deleted",
  "deleted": true
}
```
