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

# Delete Prompt(s)

> Delete one or more prompts. Supply either `promptId` (single) or `promptIds`
(batch) via query parameters, or a JSON body with `{ "promptId": "..." }`
or `{ "promptIds": ["...", "..."] }`. Maximum 100 IDs per batch request.




## OpenAPI

````yaml delete /entities/deleteprompt
openapi: 3.1.0
info:
  title: Geogen API
  description: >-
    API for accessing LLM visibility data, managing entities, and tracking AI
    mentions.
  version: 1.0.0
servers:
  - url: https://api.geogen.io/v1
    description: Production server
security:
  - bearerAuth: []
paths:
  /entities/deleteprompt:
    delete:
      tags:
        - Entities
      summary: Delete Prompt(s)
      description: >-
        Delete one or more prompts. Supply either `promptId` (single) or
        `promptIds` (batch) via query parameters, or a JSON body with `{
        "promptId": "..." }` or `{ "promptIds": ["...", "..."] }`. Maximum 100
        IDs per batch request.
      operationId: deletePrompt
      parameters:
        - name: promptId
          in: query
          required: false
          schema:
            type: string
          description: Single prompt ID to delete (mutually exclusive with promptIds).
        - name: promptIds
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated list of prompt IDs to delete (max 100).
      requestBody:
        required: false
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  properties:
                    promptId:
                      type: string
                - type: object
                  properties:
                    promptIds:
                      type: array
                      items:
                        type: string
                      maxItems: 100
      responses:
        '200':
          description: Prompt(s) deleted successfully
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                  - type: object
                    properties:
                      success:
                        type: boolean
                      deletedCount:
                        type: integer
                      requestedCount:
                        type: integer
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            promptId:
                              type: string
                            success:
                              type: boolean
                            error:
                              type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Prompt not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key authentication. Format: Bearer wsk_your_api_key'

````