# delete_campaign_step (/docs/mcp/tools/delete-campaign-step)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/delete_campaign_step.mdx. */}

**Delete a campaign step** · Deletes or overwrites data

Removes one email from a campaign's sequence for good. Contacts who already got it keep it. Confirm with the user before calling. Returns 404 when templateId is not a step of the campaign.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites (the campaign's website). |
| `campaignId` | `string` | Yes | campaignId from list_campaigns. |
| `templateId` | `string` | Yes | _id of the step, from get_campaign (emailCampaignTemplates). |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "delete_campaign_step",
  "title": "Delete a campaign step",
  "annotations": {
    "title": "Delete a campaign step",
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites (the campaign's website)."
      },
      "campaignId": {
        "type": "string",
        "description": "campaignId from list_campaigns."
      },
      "templateId": {
        "type": "string",
        "description": "_id of the step, from get_campaign (emailCampaignTemplates)."
      }
    },
    "required": [
      "websiteId",
      "campaignId",
      "templateId"
    ]
  }
}
```
