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

# Remove Leads from Campaign

> Delete leads from a draft campaign.

**CLI:**

```bash theme={null}
puffle campaign lead remove --id <id>
puffle campaign lead remove --id <id> --prospect-ids <prospect-ids> --all
```

## Overview

Delete leads from a `draft` campaign. Call with `{ all: true }` to clear the entire roster, or `{ prospect_ids: [...] }` to cherry-pick up to 500 at a time. Campaign stats are recomputed atomically after the delete.

<Note>
  This operation shares the URL path `/api/campaigns/{id}/leads` with other verbs. See [the sibling page](/api-reference/campaigns/update-lead-in-campaign) for related operations on the same resource.
</Note>


## OpenAPI

````yaml delete /api/campaigns/{id}/leads
openapi: 3.0.3
info:
  title: Puffle API
  version: 1.0.0
  description: >-
    HTTP API for the Puffle GTM platform - Feed and Lead Finder search
    preparation, campaign-backed Outbound execution, Puffle Agent runs, sender
    management, and Unibox reply workflows. Designed for operation by both
    humans and autonomous AI agents. Agents should start at the [Agent
    Playbook](/guides/agent-playbook) which prescribes a workspace-context check
    (`GET /api/context`) and core user journeys with exact call ordering.
  contact:
    name: Puffle Support
    url: https://puffle.ai
servers:
  - url: https://app.puffle.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Campaigns
    description: >-
      Campaign-backed Outbound execution. These endpoints manage draft,
      launching, active, paused, and completed Outbound runs with sequence
      nodes, contacts, and sender accounts.
  - name: Accounts
    description: Signed-in user account, settings, and workspace context endpoints.
  - name: Billing
    description: Billing customer portal and account billing endpoints.
  - name: Senders
    description: >-
      Connected sender accounts, email inboxes, sending domains, DNS
      verification, warmup, and sender capacity.
  - name: Socials
    description: >-
      Read connected LinkedIn and X accounts, review current and archived posts,
      and reconcile publication status. Creating, editing, scheduling,
      publishing, OAuth connection, analytics, and mentions remain
      dashboard-managed workflows and are not part of the public Bearer-token
      API.
paths:
  /api/campaigns/{id}/leads:
    delete:
      tags:
        - Campaigns
      summary: Remove Leads from Campaign
      description: >-
        Delete specific leads or clear all leads from a draft campaign, then
        recalculate campaign stats.
      operationId: removeLeadsFromCampaign
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Campaign UUID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prospect_ids:
                  minItems: 1
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    format: uuid
                all:
                  type: boolean
                  enum:
                    - true
              additionalProperties: false
      responses:
        '200':
          description: Leads deleted successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    anyOf:
                      - type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      - type: string
                        enum:
                          - all
                required:
                  - deleted
                additionalProperties: false
        '400':
          description: Validation failure or campaign is not editable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '401':
          description: Missing or invalid authentication.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Campaign doesn't exist or isn't owned by the caller.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Lead deletion failed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pk_live_...

````