# delete_tag (/docs/mcp/tools/delete-tag)

{/* 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_tag.mdx. */}

**Delete a tag** · Deletes or overwrites data

Deletes a tag from this website; it is removed from every lead that had it. The leads themselves stay. tagId comes from list_tags.

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

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `tagId` | `string` | Yes | Tag ID from list_tags. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "delete_tag",
  "title": "Delete a tag",
  "annotations": {
    "title": "Delete a tag",
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "tagId": {
        "type": "string",
        "description": "Tag ID from list_tags."
      }
    },
    "required": [
      "websiteId",
      "tagId"
    ]
  }
}
```
