> ## 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.

# Delete sender account

> **Remove a sender email account from your workspace**

Disconnect and delete a sender account.

## 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**: Fails if inbox is actively used in a campaign

## Important Notes

- Cannot delete inboxes that are assigned to active campaigns
- Historical data is preserved
- Credentials are securely wiped



## OpenAPI

````yaml /public_openapi.json delete /api/public/v1/sender-accounts/{inbox_id}
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/{inbox_id}:
    delete:
      tags:
        - Sender Accounts
      summary: Delete sender account
      description: >-
        **Remove a sender email account from your workspace**


        Disconnect and delete a sender account.


        ## 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**: Fails if inbox is actively used in a campaign


        ## Important Notes


        - Cannot delete inboxes that are assigned to active campaigns

        - Historical data is preserved

        - Credentials are securely wiped
      operationId: delete_sender_account_api_public_v1_sender_accounts__inbox_id__delete
      parameters:
        - name: inbox_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Sender account ID
            title: Inbox Id
          description: Sender account ID
      responses:
        '200':
          description: Sender account deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseResponseModel'
        '400':
          description: Inbox is in use by a campaign
        '401':
          description: Missing or invalid API key
        '403':
          description: Insufficient permissions - requires 'sender_accounts:delete' scope
        '404':
          description: Sender account not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BaseResponseModel:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
      type: object
      required:
        - success
        - message
      title: BaseResponseModel
      description: Base response model with common response fields.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````