> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Survey Template

> Soft-delete a survey template

# Delete Survey Template

Soft-deletes a survey template by setting `enabled` to `false`. The template is no longer returned in list queries but existing references from employee records are preserved.

## Request

### Headers

<ParamField header="x-api-key" type="string" required>
  Your API key for authentication
</ParamField>

<ParamField header="x-organization-id" type="string" required>
  Your organization UUID
</ParamField>

### Path Parameters

<ParamField path="template_id" type="string" required>
  The UUID of the survey template to delete
</ParamField>

## Response

Returns the deleted template object with `enabled: false`.

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Old Survey Template",
    "status": "active",
    "updated_at": "2024-07-15T12:00:00Z"
  }
  ```
</ResponseExample>
