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

# Preview a survey deletion

> What deleting the survey affects besides its own data, for the confirmation: the live email campaigns
that send it (paused on delete, their pending sends dropped) and how many survey tickets from before
Surveys 2.0 are deleted with it. Returns `{ liveEmailCampaigns: [{ id, name }], legacyTickets }`.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /engagement/surveys/{surveyId}/delete-preview
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-preview:
    get:
      tags:
        - Engagement Survey
      summary: Preview a survey deletion
      description: >-
        What deleting the survey affects besides its own data, for the
        confirmation: the live email campaigns

        that send it (paused on delete, their pending sends dropped) and how
        many survey tickets from before

        Surveys 2.0 are deleted with it. Returns `{ liveEmailCampaigns: [{ id,
        name }], legacyTickets }`.
      operationId: DeletePreview
      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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.