Skip to content

Delete a pipeline for a custom object type

DELETE/v1/objects/{entitySlug}/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: custom_objects:read and config:delete

Rate limit category: Write

Path ParametersExpand Collapse
entitySlug: string

The slug of the custom object type.

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
ObjectDeletePipelineResponse object { affectedRecordCount }
affectedRecordCount: number

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

minimum0
maximum9007199254740991

Delete a pipeline for a custom object type

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