delete_tag
Remove tags from n8n workflows by specifying their ID to organize and maintain workflow structure.
Instructions
Delete a tag by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:531-534 (handler)MCP tool handler function that executes the delete_tag logic by delegating to N8nClient.deleteTag and returning a formatted success response.private async handleDeleteTag(args: { id: string | number }) { await this.n8nClient.deleteTag(args.id); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess({ id: args.id }), null, 2) }] }; }
- src/index.ts:206-206 (schema)Input schema and metadata definition for the delete_tag tool, registered in the listTools response.{ name: 'delete_tag', description: 'Delete a tag by ID', inputSchema: { type: 'object', properties: { id: { oneOf: [{ type: 'string' }, { type: 'number' }] } }, required: ['id'] } },
- src/index.ts:308-309 (registration)Registration of the delete_tag tool handler in the CallToolRequest switch statement dispatcher.case 'delete_tag': return await this.handleDeleteTag(request.params.arguments as { id: string | number });
- src/n8n-client.ts:705-707 (helper)Supporting utility in N8nClient class that performs the actual HTTP DELETE request to the n8n /tags/{id} endpoint.async deleteTag(id: string | number): Promise<void> { await this.api.delete(`/tags/${id}`); }