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

# Remove Candidate from Job Opening

> Removes a candidate and any of their pending or completed interviews from a job opening.

The candidate can be identified by contact_id, email, or phone_number. At least one of these identifiers must be provided.



## OpenAPI

````yaml DELETE /job-openings/{JOB_OPENING_ID}/interviews
openapi: 3.0.1
info:
  title: Alpharun API
  description: Alpharun REST API reference
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.alpharun.com/api/v1
security:
  - bearerAuth: []
paths:
  /job-openings/{JOB_OPENING_ID}/interviews:
    delete:
      summary: Remove candidate from job opening
      description: >-
        Removes a candidate and any of their pending or completed interviews
        from a job opening.


        The candidate can be identified by contact_id, email, or phone_number.
        At least one of these identifiers must be provided.
      parameters:
        - name: JOB_OPENING_ID
          in: path
          description: ID of the job opening
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteInterviewPayload'
            example:
              contact_id: abc123
      responses:
        '200':
          description: Candidate successfully deleted from job opening
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates successful deletion
              example:
                success: true
        '400':
          description: Bad request - Invalid payload or missing required identifiers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Contact or interview not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DeleteInterviewPayload:
      type: object
      description: >-
        Payload for deleting a candidate's interview from a job opening. At
        least one identifier must be provided.
      properties:
        contact_id:
          type: string
          description: ID of the contact to delete
        email:
          type: string
          format: email
          description: Email address of the contact to delete
        phone_number:
          type: string
          description: Phone number of the contact to delete
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````