Delete a pipeline
Delete a pipeline and its stages.
DELETE
https://api.centerfy.ai/webhooks/inbound/pipelines/:id Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The pipeline id. |
Query parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
force | boolean | No | false | Required when the pipeline still has opportunities — deleting the pipeline permanently deletes them too. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/pipelines/{id}?force=false" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.pipelines.delete("<pipelineId>", {
"force": "false"
});
console.log(result); centerfy pipelines delete <pipelineId> '{"force":"false"}' MCP tool: centerfy_pipelines_delete (see MCP server)
Response
{
"status": "success",
"deleted": true,
"pipeline_id": "7d2e9f10-4b3c-4a1d-9e8f-2a3b4c5d6e7f",
"opportunities_deleted": 0
}Errors
409— with opportunity_count while the pipeline has opportunities and force is not true.404— if the pipeline is not in this sub-account.