---
title: "Delete a survey"
method: DELETE
path: "/api/v3/surveys/{surveyId}"
tags: ["V3 Surveys"]
---

# Delete a survey

`DELETE /api/v3/surveys/{surveyId}`

Deletes a survey by id. Session cookie or x-api-key.

## Path parameters

- `surveyId` string, cuid2, required

## Response `204`

Survey deleted successfully

## Other responses

- `400` — Bad Request — malformed JSON, invalid query/body/params, duplicate name, or unsupported field.
- `401` — Not authenticated (no valid session or API key).
- `403` — Forbidden — no workspace access, or resource does not exist (404 not used; avoids existence leak).
- `429` — Rate limit exceeded.
- `500` — Internal Server Error.

## Changes

- **2026-06-24** `b5349eecf1e6` — 10 warning
  - added the new `not_found` enum value to the `code` response property for the response status `400`
  - added the new `not_found` enum value to the `code` response property for the response status `401`
  - added the new `not_found` enum value to the `code` response property for the response status `403`
  - added the new `not_found` enum value to the `code` response property for the response status `429`
  - …6 more
- **2026-06-05** `90798c12f7ae` — 30 warning
  - added the new `ai_features_not_enabled` enum value to the `code` response property for the response status `400`
  - added the new `ai_features_not_enabled` enum value to the `code` response property for the response status `401`
  - added the new `ai_features_not_enabled` enum value to the `code` response property for the response status `403`
  - added the new `ai_features_not_enabled` enum value to the `code` response property for the response status `429`
  - …26 more
- **2026-05-28** `b514d6392200` — 35 info
  - added the optional property `invalid_params/items/code` to the response with the `400` status
  - added the optional property `invalid_params/items/code` to the response with the `401` status
  - added the optional property `invalid_params/items/code` to the response with the `403` status
  - added the optional property `invalid_params/items/code` to the response with the `429` status
  - …31 more
- …earlier changes not shown

[Full history](https://skmtc.dev/formbricks/apis/formbricks-api-v3/changes/api/v3/surveys/:surveyId/delete.md)

---

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