Skip to content

Delete a contact pipeline

DELETE/v1/contacts/pipelines/{id}

Deletes the pipeline and its stages, clearing the stage of every record in one. Automations and saved filters that reference it are left as they are. With dryRun=true, runs every check and returns the count without deleting anything. A workspace without multiple pipelines is refused with 403 crm.pipeline.configuration_disabled.

Requires a workspace owner or admin.

Required scopes: contacts:read and config:delete

Rate limit category: Write

Path ParametersExpand Collapse
id: string

The pipeline, by its id (pd_…) or its slug (e.g. $default-pipeline).

Query ParametersExpand Collapse
dryRun: optional boolean

Check the request and count the records it would clear, without changing anything. Defaults to false.

Body ParametersJSONExpand Collapse
body: optional object { }
ReturnsExpand Collapse
ContactDeletePipelineResponse object { affectedRecordCount }
affectedRecordCount: number

Number of records whose stage is, or would be, cleared.

minimum0
maximum9007199254740991

Delete a contact pipeline

curl https://api.lightfield.app/v1/contacts/pipelines/$ID \
    -X DELETE \
    -H 'Lightfield-Version: 2026-03-01' \
    -H "Authorization: Bearer $API_KEY"
{
  "affectedRecordCount": 0
}
Returns Examples
{
  "affectedRecordCount": 0
}