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

# Delete Prompt

> Permanently delete all versions of a prompt

## Overview

Permanently delete all versions of a prompt. This action cannot be undone.

<Warning>
  You cannot delete a prompt that is currently used by any agent. Unassign the prompt from all agents before deleting it.
</Warning>

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Your eigi.ai API key. Must be prefixed with `vk_`.
</ParamField>

## Path Parameters

<ParamField path="prompt_name" type="string" required>
  The unique name of the prompt to delete.

  Example: `customer_support_v1`
</ParamField>

## Response

<ResponseField name="message" type="string">
  Success confirmation message.
</ResponseField>

<ResponseField name="prompt_name" type="string">
  Name of the deleted prompt.
</ResponseField>

<ResponseField name="versions_deleted" type="integer">
  Number of versions that were deleted.
</ResponseField>

<ResponseField name="deleted_at" type="string">
  ISO 8601 timestamp of when the deletion occurred.
</ResponseField>


## OpenAPI

````yaml DELETE /v1/public/prompts/{prompt_name}
openapi: 3.0.0
info:
  title: eigi.ai API
  description: REST API for managing AI voice agents and conversations
  version: 1.0.0
  contact:
    email: buddy@eigi.ai
    url: https://eigi.ai
servers:
  - url: https://api.eigi.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /v1/public/prompts/{prompt_name}:
    delete:
      tags:
        - Prompts
      summary: Delete Prompt
      description: >-
        Permanently delete all versions of a prompt. Cannot delete a prompt
        currently used by any agent.
      operationId: deletePrompt
      parameters:
        - name: prompt_name
          in: path
          required: true
          description: The unique prompt name
          schema:
            type: string
          example: customer_support_v1
      responses:
        '200':
          description: Prompt deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptDeleteResponse'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PromptDeleteResponse:
      type: object
      properties:
        message:
          type: string
          description: Success message
        prompt_name:
          type: string
          description: Name of the deleted prompt
        versions_deleted:
          type: integer
          description: Number of versions deleted
        deleted_at:
          type: string
          format: date-time
          description: Deletion timestamp
    Error:
      type: object
      properties:
        detail:
          type: string
          description: Error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get your API key from the eigi.ai Dashboard
        under Settings â†’ API Keys.

````