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

# Delete a list

> Soft-delete a contact or company list. This is the cleanup counterpart of create_a_list: use it to remove destination lists once they are no longer needed (e.g. test or temporary prospecting lists). Requires the `type` query param (CONTACTS or COMPANIES) to disambiguate contact list IDs from company list IDs, which are independent sequences and can collide numerically. Only removes the list itself; contacts/companies that were members of the list are not deleted. If a contact list has an active recurring schedule, deletion stops that schedule first; if the schedule cannot be stopped, the delete is aborted (500) and the list is left intact rather than leaving a schedule running against a deleted list.

    > **Required scope:** `LISTS_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json delete /v1/lists/{listId}
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/lists/{listId}:
    delete:
      tags:
        - Lists
      summary: Delete a list
      description: >-
        Soft-delete a contact or company list. This is the cleanup counterpart
        of create_a_list: use it to remove destination lists once they are no
        longer needed (e.g. test or temporary prospecting lists). Requires the
        `type` query param (CONTACTS or COMPANIES) to disambiguate contact list
        IDs from company list IDs, which are independent sequences and can
        collide numerically. Only removes the list itself; contacts/companies
        that were members of the list are not deleted. If a contact list has an
        active recurring schedule, deletion stops that schedule first; if the
        schedule cannot be stopped, the delete is aborted (500) and the list is
        left intact rather than leaving a schedule running against a deleted
        list.

            > **Required scope:** `LISTS_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: string
            description: The list ID
          required: true
          description: The list ID
          name: listId
          in: path
        - schema:
            type: string
            enum:
              - CONTACTS
              - COMPANIES
            description: >-
              Type of the list to delete (CONTACTS or COMPANIES). Required
              because contact list IDs and company list IDs are independent
              sequences and can collide numerically.
          required: true
          description: >-
            Type of the list to delete (CONTACTS or COMPANIES). Required because
            contact list IDs and company list IDs are independent sequences and
            can collide numerically.
          name: type
          in: query
      responses:
        '200':
          description: List deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: number
                        description: ID of the deleted list
                      type:
                        type: string
                        enum:
                          - CONTACTS
                          - COMPANIES
                        description: Type of the deleted list (CONTACTS or COMPANIES)
                    required:
                      - id
                      - type
                required:
                  - status
                  - message
                  - data
        '400':
          description: >-
            Bad request - invalid list ID, missing/invalid type, or list
            protected from deletion
        '404':
          description: List not found
        '500':
          description: >-
            Internal error - the list's recurring schedule could not be stopped,
            so the list was not deleted
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````