---
title: "DELETE /projects/{project_id}/surveys/{survey_id}"
method: DELETE
path: "/projects/{project_id}/surveys/{survey_id}"
tags: ["Surveys"]
---

# DELETE /projects/{project_id}/surveys/{survey_id}

`DELETE /projects/{project_id}/surveys/{survey_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/surveys/{survey_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `survey_id` integer, required

## Response `200`

Survey deleted; its answers stay in analytics

- DeleteSurveyResponse
  - `deleted` boolean, required
  - `id` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions (requires surveys:write)
- `404`: Survey not found
- `500`: Internal server error

## Changes

- **2026-11-20** `1167397f1408`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/surveys/:survey_id/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
