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

# Delete Candidate

> Delete a candidate and all related data.



## OpenAPI

````yaml https://api.ropes.ai/api/docs/openapi.json delete /api/public/candidates/{candidateId}
openapi: 3.0.0
info:
  title: Ropes Public API
  version: 1.0.0
  description: >-
    Public API for Ropes. Authenticate using your API key in the x-api-key
    header.
servers:
  - url: https://api.ropes.ai
    description: Production server
  - url: http://localhost:3001
    description: Local development server
security: []
paths:
  /api/public/candidates/{candidateId}:
    delete:
      tags:
        - Candidates
      summary: Delete Candidate
      description: Delete a candidate and all related data.
      parameters:
        - schema:
            type: string
            description: The unique identifier of the candidate to delete
          required: true
          description: The unique identifier of the candidate to delete
          name: candidateId
          in: path
      responses:
        '200':
          description: Successfully deleted candidate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCandidateResponse'
        '400':
          description: Bad request - Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCandidateResponse'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Candidate not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCandidateResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DeleteCandidateResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the operation was successful
        message:
          type: string
          description: Success or error message
      required:
        - success
        - message
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        message:
          type: string
          description: Error message (alternative field)
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````