> ## 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.

# Delete a ticket

> Permanently deletes a ticket; this cannot be undone. Also deletes every ticket merged into it as a
duplicate, along with all messages, scheduled replies, console/network logs and replay data, and removes
the ticket from other tickets' linked lists. Fires the `TICKET_DELETED` webhook. Returns an empty body.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json delete /tickets/{ticketId}
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/{ticketId}:
    delete:
      tags:
        - Ticket
      summary: Delete a ticket
      description: >-
        Permanently deletes a ticket; this cannot be undone. Also deletes every
        ticket merged into it as a

        duplicate, along with all messages, scheduled replies, console/network
        logs and replay data, and removes

        the ticket from other tickets' linked lists. Fires the `TICKET_DELETED`
        webhook. Returns an empty body.
      operationId: DeleteTicket
      parameters:
        - in: path
          name: ticketId
          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

````