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

# Bulk delete sender accounts

> **Delete multiple sender accounts asynchronously**

Delete up to 100 sender accounts with background processing.

## Behavior

- **ColdSend Native inboxes**: Removes from Azure Communication Services and Stalwart, then deletes from database
- **Workspace/SMTP inboxes**: Removes IMAP registration and deletes from database only
- **Campaign check**: Accounts used in campaigns will be skipped

## Tracking Progress

Use the returned `job_id` to track progress:
```
GET /api/public/v1/sender-accounts/bulk/delete/{job_id}/progress
```

## Important Notes

- Maximum 100 accounts per request
- Processing runs in background
- Returns immediately with a job_id
- Requires explicit confirmation



## OpenAPI

````yaml /public_openapi.json post /api/public/v1/sender-accounts/bulk/delete
openapi: 3.0.3
info:
  title: ColdSend Public API
  description: >-
    Programmatic access to ColdSend for managing cold email campaigns and sender
    accounts.
  version: 1.0.0
  contact:
    name: ColdSend Support
    email: support@coldsend.pro
    url: https://coldsend.pro
servers:
  - url: https://api.coldsend.pro
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/public/v1/sender-accounts/bulk/delete:
    post:
      tags:
        - Sender Accounts
      summary: Bulk delete sender accounts
      description: >-
        **Delete multiple sender accounts asynchronously**


        Delete up to 100 sender accounts with background processing.


        ## Behavior


        - **ColdSend Native inboxes**: Removes from Azure Communication Services
        and Stalwart, then deletes from database

        - **Workspace/SMTP inboxes**: Removes IMAP registration and deletes from
        database only

        - **Campaign check**: Accounts used in campaigns will be skipped


        ## Tracking Progress


        Use the returned `job_id` to track progress:

        ```

        GET /api/public/v1/sender-accounts/bulk/delete/{job_id}/progress

        ```


        ## Important Notes


        - Maximum 100 accounts per request

        - Processing runs in background

        - Returns immediately with a job_id

        - Requires explicit confirmation
      operationId: >-
        bulk_delete_sender_accounts_api_public_v1_sender_accounts_bulk_delete_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkSenderAccountDeleteRequest'
        required: true
      responses:
        '202':
          description: Bulk deletion initiated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkSenderAccountDeleteResponse'
        '400':
          description: Invalid request or confirmation missing
        '401':
          description: Missing or invalid API key
        '403':
          description: Insufficient permissions - requires 'sender_accounts:delete' scope
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BulkSenderAccountDeleteRequest:
      properties:
        inbox_ids:
          items:
            type: string
            format: uuid
          type: array
          maxItems: 100
          minItems: 1
          title: Inbox Ids
          description: List of sender account IDs to delete (max 100)
        confirm_deletion:
          type: boolean
          title: Confirm Deletion
          description: You must explicitly confirm bulk deletion by setting this to true
      type: object
      required:
        - inbox_ids
        - confirm_deletion
      title: BulkSenderAccountDeleteRequest
      description: Request schema for bulk sender account deletion.
    BulkSenderAccountDeleteResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        job_id:
          type: string
          nullable: true
          title: Job Id
          description: Job ID for tracking progress
        total:
          type: integer
          title: Total
          description: Total accounts in request
        deleted_count:
          type: integer
          title: Deleted Count
          description: Number of successfully deleted accounts
        failed_count:
          type: integer
          title: Failed Count
          description: Number of failed deletions
        skipped_count:
          type: integer
          title: Skipped Count
          description: Number of skipped accounts (not found, in use)
          default: 0
        results:
          items:
            $ref: '#/components/schemas/BulkSenderAccountDeleteResult'
          type: array
          title: Results
          description: Individual deletion results
          default: []
      type: object
      required:
        - success
        - message
        - total
        - deleted_count
        - failed_count
      title: BulkSenderAccountDeleteResponse
      description: Response for bulk sender account deletion.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BulkSenderAccountDeleteResult:
      properties:
        inbox_id:
          type: string
          format: uuid
          nullable: true
          title: Inbox Id
          description: Sender account ID (null after deletion)
        email_address:
          type: string
          title: Email Address
          description: Email address
        status:
          type: string
          title: Status
          description: 'Deletion status: DELETED, FAILED, SKIPPED, PENDING'
        error_message:
          type: string
          nullable: true
          title: Error Message
          description: Error message if deletion failed
      type: object
      required:
        - email_address
        - status
      title: BulkSenderAccountDeleteResult
      description: Result of individual sender account deletion.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key with format cs_live_xxx

````