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

# Delete Pipeline Stage

> Delete a stage. If the stage has opportunities, you must pass `destination_stage_id` (in body or query) so they can be migrated to another stage in the same pipeline. Without it, returns 400 with the candidate stages.



## OpenAPI

````yaml DELETE /crm/pipeline-stages/{stage_id}/
openapi: 3.1.0
info:
  title: Aidan API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.callaidan.com
security: []
tags:
  - name: Webhooks
    description: >-
      **Inbound notifications.** After a voice call ends, Aidan POSTs JSON to
      the Webhook URL on your agent (Voice Agents settings or `webhook_url`).
      Your server receives these requests — they are not calls *to*
      `api.callaidan.com`. The documented path `/_reference/webhooks/...` exists
      only in this spec so the payload schema can appear in the API Reference;
      it is not callable on the production API.
paths:
  /crm/pipeline-stages/{stage_id}/:
    delete:
      tags:
        - crm
      summary: Delete Pipeline Stage
      description: >-
        Delete a stage. If the stage has opportunities, you must pass
        `destination_stage_id` (in body or query) so they can be migrated to
        another stage in the same pipeline. Without it, returns 400 with the
        candidate stages.
      operationId: crm_pipeline_stages_destroy
      parameters:
        - in: query
          name: destination_stage_id
          schema:
            type: string
            format: uuid
          description: >-
            Stage to migrate the deleted stage's opportunities into. Aliases:
            `replacement_stage_id`, `target_stage_id`. Required if the stage has
            opportunities.
        - in: path
          name: stage_id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '204':
          description: Stage deleted (and opportunities migrated when applicable).
        '400':
          description: Stage has opportunities and no valid destination was supplied.
        '404':
          description: Stage not found.
      security:
        - jwtAuth: []
        - {}
components:
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````