Easymailing
Pipelines

Delete a pipeline

DELETE /pipelines/{uuid}

DELETE/pipelines/{uuid}

Permanently deletes a pipeline with its stages and loss reasons. It must have no deals. If it is the default pipeline, you must name another one as the new default.

When to use: Only when the user explicitly asks to remove a sales process that is no longer used.

When not to use: A pipeline with deals cannot be deleted: move them with move_opportunity_pipeline or delete them first. To keep the pipeline but rename it, use update_pipeline.

Side effects: The pipeline, its stages, loss reasons and access grants disappear. There is no undo. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).

Permissions: Requires a CRM seat and the crm.pipelines.manage capability. It also needs admin access to the pipeline.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the pipeline. Get it from list_pipelines.

Formatuuid

Query Parameters

replacement_default?string

UUID of the pipeline that becomes the default. Required only when you delete the default pipeline.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://api.easymailing.com/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57?replacement_default=71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty