---
search:
  tags:
    - Visibility setups
    - DELETE
seo:
  description: >-
    Destructive. Requires confirm: true in the body. Archives the… Reference for
    the DELETE /visibility-setups/{setup_id} endpoint in the Zaraftis Public
    API.
sidebar:
  label: Archive a visibility setup
  badge: DELETE
title: Archive a visibility setup
type: openapi-operation
---
Destructive. Requires confirm: true in the body. Archives the setup (status archived) so future scans can no longer use it; past scans and billing records are kept and any schedule on it is turned off. Without confirm the route answers 400 confirmation_required describing the consequences. Deleted setups look like any other missing setup (404 not_found).

`DELETE /visibility-setups/{setup_id}`

**Request body** (`application/json`, required)

- `confirm` (boolean, required)

Request body example:

```json
{
  "confirm": true
}
```

**Responses**

- `200` — Archived setup reference
- `400` — bad\_request or validation\_failed
- `404` — not\_found: unknown id, or an id this key cannot see
- `429` — rate\_limited: wait the Retry-After seconds

Response example, 200:

```json
{
  "success": true,
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "status": "archived"
  },
  "request_id": "string"
}
```
