> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a trace by identifier

> Delete an entire trace by its identifier. The identifier can be either:
1. A Relay node ID (base64-encoded)
2. An OpenTelemetry trace_id (hex string)

This will permanently remove all spans in the trace and their associated data.



## OpenAPI

````yaml delete /v1/traces/{trace_identifier}
openapi: 3.1.0
info:
  title: Arize-Phoenix REST API
  description: Schema for Arize-Phoenix REST API
  version: '1.0'
servers: []
security: []
paths:
  /v1/traces/{trace_identifier}:
    delete:
      tags:
        - traces
      summary: Delete a trace by identifier
      description: >-
        Delete an entire trace by its identifier. The identifier can be either:

        1. A Relay node ID (base64-encoded)

        2. An OpenTelemetry trace_id (hex string)


        This will permanently remove all spans in the trace and their associated
        data.
      operationId: deleteTrace
      parameters:
        - name: trace_identifier
          in: path
          required: true
          schema:
            type: string
            description: >-
              The trace identifier: either a relay GlobalID or OpenTelemetry
              trace_id
            title: Trace Identifier
          description: >-
            The trace identifier: either a relay GlobalID or OpenTelemetry
            trace_id
      responses:
        '204':
          description: Successful Response
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                type: string
        '404':
          content:
            text/plain:
              schema:
                type: string
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````