---
title: "Archive a website test"
method: DELETE
path: "/v1/optimize/tests/{id}"
tags: ["Optimize"]
---

# Archive a website test

`DELETE /v1/optimize/tests/{id}`

## Request

- Base URL: `https://api.revdesk.com`
- URL: `https://api.revdesk.com/v1/optimize/tests/{id}`
- Auth: HTTP bearer

Archives a test. A running test stops serving its variants; results and shipped changes are kept. Tests are never hard deleted.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Response `200`

Success

- object
  - `data` object, required
    - `id` string, required
    - `archived` boolean, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict (incl. idempotency conflicts)
- `429`: Rate limited

---

[API](https://skmtc.dev/revdesk/apis/revdesk-v1-api.md) · [All operations](https://skmtc.dev/revdesk/apis/revdesk-v1-api/llms.txt) · [OpenAPI document](https://skmtc.dev/revdesk/apis/revdesk-v1-api/revisions/fcbd43530a48?raw)
