ToolsCampaigns
mailmoo_campaign_remove
Delete a campaign
Deletes a campaign as the app does: its sequence stops and it disappears from lists. Its leads, the people behind them and their conversations stay in the workspace. Campaign by name or id. Without confirm it changes nothing and returns whether it is running and how many leads it has: show that and ask, then call again with confirm: true. To stop it for now, pause it with campaign_set_state instead.
Effect: Write. See Effects.
Permissions: Read campaigns, Write campaigns.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign | string | Yes | The campaign, by name or id. |
confirm | boolean | No | Leave out first: the call then changes nothing and returns what would happen. Show that to the user, and call again with confirm: true once they agree. |

