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

# Delete a survey

> Permanently delete an engagement survey. This also deletes the survey's form definition and its
delivery records. Already-collected responses are kept, but exporting them afterwards will no longer
resolve question labels. This cannot be undone.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json delete /engagement/surveys/{surveyId}
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /engagement/surveys/{surveyId}:
    delete:
      tags:
        - Engagement Survey
      summary: Delete a survey
      description: >-
        Permanently delete an engagement survey. This also deletes the survey's
        form definition and its

        delivery records. Already-collected responses are kept, but exporting
        them afterwards will no longer

        resolve question labels. This cannot be undone.
      operationId: DeleteSurvey
      parameters:
        - in: path
          name: surveyId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````