n8n_delete_tag
Remove tags from n8n workflows by providing the tag ID, helping organize and clean up workflow automation projects.
Instructions
Delete a tag.
Args:
id (string): Tag ID to delete
Returns: Confirmation of deletion.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/tags.ts:158-186 (handler)The handler function for the `n8n_delete_tag` tool. It takes an ID from the input schema and calls the delete API endpoint.
// ============ Delete Tag ============ server.registerTool( 'n8n_delete_tag', { title: 'Delete n8n Tag', description: `Delete a tag. Args: - id (string): Tag ID to delete Returns: Confirmation of deletion.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { await del(`/tags/${params.id}`); return { content: [{ type: 'text', text: `✅ Tag ${params.id} deleted successfully.` }], structuredContent: { deleted: true, id: params.id } }; } );