Delete a lead source Run in API Explorer

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.plannrcrm.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "PlannrCRM MCP server": {
    "url": "https://apidocs.plannrcrm.com/mcp"
  }
}

Close
DELETE /api/v1/lead-sources/{uuid}

Soft deletes the lead source and all of its sub-sources. A source referenced by any lead, directly or through one of its sub-sources, cannot be deleted and must be archived instead.

Path parameters

  • uuid string Required

Responses

  • 409 application/json
    Hide response attribute Show response attribute object
    • message string Required

      A human-readable description of the error.

DELETE /api/v1/lead-sources/{uuid}
curl \
 --request DELETE 'https://api.plannrcrm.com/api/v1/lead-sources/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (409)
{
  "message": "This lead source is in use by one or more leads and must be archived instead."
}
{
  "message": "A sub-source of this lead source is in use by one or more leads; archive the source instead."
}