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

# Delete Contact List

> Permanently deletes a contact list and its contacts. A list can't be deleted while it's used by a campaign that is `created`, `scheduled`, `running` or `paused`.



## OpenAPI

````yaml /openapi-v1.yml delete /api/v1/contact-list/
openapi: 3.1.1
info:
  title: DeliverymanAI API V1
  version: 1.0.0
  description: >-
    API documentation for version 1 of the DeliverymanAI API. These endpoints
    drive campaigns, contact lists, leads and email sequences from your own
    code.


    V1 and V2 share the same API keys, sent in the `X-Api-Key` header.
servers:
  - url: https://api.deliveryman.ai
    description: Deliveryman API Server
security: []
paths:
  /api/v1/contact-list/:
    delete:
      tags:
        - Contact List
      summary: Delete Contact List
      description: >-
        Permanently deletes a contact list and its contacts. A list can't be
        deleted while it's used by a campaign that is `created`, `scheduled`,
        `running` or `paused`.
      operationId: contact_list_destroy
      parameters:
        - in: query
          name: contact_list_uid
          schema:
            minLength: 1
            title: Contact List Uid
            type: string
          description: UID of the contact list.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Not Found
        '500':
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Not Available Yet
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: bash
          label: curl
          source: >-
            curl -X DELETE
            "https://api.deliveryman.ai/api/v1/contact-list/?contact_list_uid=cl_2f9a4c71b8e6d305"
            \
              -H "X-Api-Key: YOUR_API_KEY"
components:
  schemas:
    SimpleMessageResponse:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description of the result or error.
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Your API key, sent as the value of the `X-Api-Key` header. In the
        dashboard, go to Integrations and open Deliveryman API Keys to create
        one.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.