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

# Bulk delete campaigns

> Permanently deletes the campaign mailings identified by `campaign_mailing_ids`. There is no single-delete endpoint; delete one mailing by passing an array of one ID.

This is irreversible. Deleting a mailing also removes its associated delivery and send records.

Omitting `campaign_mailing_ids` is a no-op and still returns `200` with an empty object.

**Example curl command:**
```bash
curl -X DELETE \
https://api.paubox.com/v1/marketing/campaign_mailings_bulk_delete \
  -H 'authorization: Token token=YOUR_API_KEY' \
  -H 'content-type: application/json' \
  -d '{
    "campaign_mailing_ids": ["123e4567-e89b-12d3-a456-426614174000"]
  }'
```




## OpenAPI

````yaml openapi2 DELETE /campaign_mailings_bulk_delete
openapi: 3.0.3
info:
  title: Paubox Marketing API
  description: >
    Public documentation Paubox Marketing API. 


    All Paubox Marketing customers have access to the Paubox Marketing API to
    automate various tasks.


    ## Authentication

    Use the authorization header in requests with the format: `authorization:
    Token token=<API_KEY>`


    Replace `<API_KEY>` with your API key. Find your API key in the address bar
    from the email builder (note: each API Key is displayed only once upon
    creation).


    ## Base URL

    `https://api.paubox.com/v1/marketing`
  contact:
    name: Paubox Support
    url: https://www.paubox.com
  version: 1.0.0
servers:
  - url: https://api.paubox.com/v1/marketing
    description: Production server
security:
  - TokenAuth: []
tags:
  - name: subscribers
    description: Subscriber management operations
  - name: analytics
    description: Campaign analytics and reporting operations
  - name: campaign_mailings
    description: Campaign mailing management and sending operations
  - name: drip_campaigns
    description: Drip campaign management and automation operations
  - name: subscription_lists
    description: Subscription list management operations
  - name: subscriptions
    description: Subscriber opt-in and opt-out operations
  - name: tracking_links
    description: Tracking link analytics and data operations
paths:
  /campaign_mailings_bulk_delete:
    delete:
      tags:
        - campaign_mailings
      summary: Bulk delete campaign mailings
      description: >
        Permanently deletes the campaign mailings identified by
        `campaign_mailing_ids`. There is no single-delete endpoint; delete one
        mailing by passing an array of one ID.


        This is irreversible. Deleting a mailing also removes its associated
        delivery and send records.


        Omitting `campaign_mailing_ids` is a no-op and still returns `200` with
        an empty object.


        **Example curl command:**

        ```bash

        curl -X DELETE \

        https://api.paubox.com/v1/marketing/campaign_mailings_bulk_delete \
          -H 'authorization: Token token=YOUR_API_KEY' \
          -H 'content-type: application/json' \
          -d '{
            "campaign_mailing_ids": ["123e4567-e89b-12d3-a456-426614174000"]
          }'
        ```
      operationId: bulkDeleteCampaignMailings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteCampaignMailingsRequest'
            example:
              campaign_mailing_ids:
                - 123e4567-e89b-12d3-a456-426614174000
        required: true
      responses:
        '200':
          description: >-
            An empty object. The response does not report how many records were
            deleted.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    BulkDeleteCampaignMailingsRequest:
      type: object
      properties:
        campaign_mailing_ids:
          type: array
          description: UUIDs of the campaign mailings to delete. Omit for a no-op.
          items:
            type: string
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code
        details:
          type: object
          description: Additional error details
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    TokenAuth:
      type: apiKey
      description: >-
        Token-based authentication. Use format: "Token token=<API_KEY>" where
        <API_KEY> is your API key
      name: authorization
      in: header

````