---
title: "Archive Survey"
method: DELETE
path: "/v2/surveys/{id}"
tags: ["Surveys V2"]
---

# Archive Survey

`DELETE /v2/surveys/{id}`

Archives a survey. Surveys with active paywall associations cannot be archived. Requires surveys:write scope.

## Path parameters

- `id` string, required — Survey ID

## Response `200`

Success

- object
  - `id` string, required — ID of the archived survey
  - `object` 'survey', required — Object type, always `survey`
  - `deleted` true, required — Always true for archive responses

## Other responses

- `400` — The request did not match the expected schema
- `401` — No API key was provided in the request
- `403` — The API key does not have permission to perform this action
- `404` — The requested resource was not found
- `409` — The resource already exists or conflicts with an existing resource
- `429` — Too many requests have been made in a short period
- `500` — An unexpected error occurred on the server

---

[API](https://skmtc.dev/superwall/apis/superwall-api-v2.md) · [All operations](https://skmtc.dev/superwall/apis/superwall-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/superwall/superwall-api-v2/revisions/e04f76c478af/schema)
