closeBot.deleteLead permanently deletes a lead and its CloseBot conversation.
automations/delete-closebot-lead.automation.ts
Inputs
ProvideleadId.
Output
Returnsnull after deletion. This destructive action is not replay-safe.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Delete a CloseBot lead.
closeBot.deleteLead permanently deletes a lead and its CloseBot conversation.
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"
export default automation("Delete CloseBot lead", () => {
onDashboardRun({ title: "Delete CloseBot lead" })
closeBot.deleteLead({ leadId: "lead-id" })
})
leadId.
null after deletion. This destructive action is not replay-safe.