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

# Remove Lead from Campaign

> Permanently removes a lead from the specified campaign, identified by phone number or campaign lead ID.

## Authentication
All requests require an `Authorization` header using Bearer token authentication:
`Authorization: Bearer <api_key>`



## OpenAPI

````yaml DELETE /api/v2/voice-campaigns/{campaign_id}/lead/remove
openapi: 3.1.0
info:
  title: VoiceAIWrapper API
  description: >-
    REST API for managing campaigns, leads, clients, web widgets, and voice
    providers on VoiceAIWrapper.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.voiceaiwrapper.app
security:
  - bearerAuth: []
paths:
  /api/v2/voice-campaigns/{campaign_id}/lead/remove:
    delete:
      tags:
        - Leads (v2)
      summary: Remove Lead from Campaign
      description: >-
        Permanently removes a lead from the specified campaign, identified by
        phone number or campaign lead ID.


        ## Authentication

        All requests require an `Authorization` header using Bearer token
        authentication:

        `Authorization: Bearer <api_key>`
      operationId: removeLeadFromCampaignV2
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: Identifier of the campaign. Required.
          schema:
            type: string
            example: camp_abc123
      requestBody:
        required: true
        description: Lead identifier - provide phone_number or campaign_lead_id
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveLeadRequest'
      responses:
        '200':
          description: Lead removed successfully. Returns status and confirmation message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
              example:
                status: success
                message: Lead removed successfully
        '400':
          description: >-
            Invalid request data. Must provide either phone_number or
            campaign_lead_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: >-
                  To delete a lead, you need to provide either the
                  "campaign_lead_id" or the "phone_number"
        '401':
          description: Authentication failed. Ensure the Bearer token is present and valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          description: >-
            Resource not found. No lead matched the given phone_number or
            campaign_lead_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Lead not found with the given phone number or campaign lead id
        '500':
          description: Internal server error. Contact support if this persists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Internal server error
components:
  schemas:
    RemoveLeadRequest:
      type: object
      properties:
        phone_number:
          type: string
          description: >-
            Lead phone number in E.164 format. Required if campaign_lead_id is
            not provided.
          example: '+14155552671'
        campaign_lead_id:
          type: string
          description: >-
            Global ID of the campaign lead record. Required if phone_number is
            not provided.
          example: Vm9pY2VDYW1wYWlnbkxlYWQ6MTIzNA==
    SuccessMessage:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````