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

# Delete Campaign

> Permanently deletes a campaign that is in draft status. Only draft campaigns
can be deleted. Requires `campaigns:delete` permission.




## OpenAPI

````yaml DELETE /api/campaigns/{id}
openapi: 3.1.0
info:
  title: Naturalead Campaigns API
  version: 1.0.0
  description: >
    API for managing outreach campaigns in the Naturalead platform. Campaigns

    orchestrate batch AI-driven conversations with leads across messaging
    channels.

    All endpoints require API key authentication and are scoped

    to the caller's account.
servers:
  - url: '{baseUrl}'
    description: API server
    variables:
      baseUrl:
        default: http://localhost:3001
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Campaigns
    description: Campaign CRUD, launch, pause, and channel discovery
paths:
  /api/campaigns/{id}:
    delete:
      tags:
        - Campaigns
      summary: Delete campaign
      description: >
        Permanently deletes a campaign that is in draft status. Only draft
        campaigns

        can be deleted. Requires `campaigns:delete` permission.
      operationId: deleteCampaign
      parameters:
        - $ref: '#/components/parameters/CampaignId'
      responses:
        '200':
          description: Campaign deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                required:
                  - success
        '404':
          description: Campaign not found or not in draft status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Campaign not found or not in draft status
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    CampaignId:
      name: id
      in: path
      required: true
      description: Campaign ID (MongoDB ObjectId)
      schema:
        type: string
        example: 665a1b2c3d4e5f6a7b8c9d0e
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  responses:
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Failed to process request
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        API key for programmatic access. Keys use the format `nl_live_<64 hex>`
        or `nl_test_<64 hex>` and are scoped to an account's RBAC permissions.
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        Bearer token using an API key (format: nl_live_* or nl_test_*).

````