Skip to main content
Glama

n8n_delete_tag

Remove a tag from the n8n system and automatically detach it from all associated workflows while keeping the workflows intact.

Instructions

Remove tag from system. Automatically removes this tag from all workflows using it. Tag removal does not affect workflows themselves, only the tag association.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTag ID to permanently delete

Implementation Reference

  • Handler function that executes the deleteTag logic by making an HTTP DELETE request to the n8n API endpoint /tags/{id}
    async deleteTag(id: string) {
      return this.request(`${this.apiBase}/tags/${id}`, { method: 'DELETE' });
    }
  • Tool schema definition with name, description, input parameters (id: string, required), and annotations indicating it's a destructive, idempotent operation
      name: 'n8n_delete_tag',
      description: 'Remove tag from system. Automatically removes this tag from all workflows using it. Tag removal does not affect workflows themselves, only the tag association.',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'Tag ID to permanently delete' },
        },
        required: ['id'],
      },
      annotations: {
        title: 'Delete Tag',
        readOnlyHint: false,
        destructiveHint: true,
        idempotentHint: true,
        openWorldHint: true,
      },
    },
  • src/server.ts:75-76 (registration)
    Switch case that routes 'n8n_delete_tag' tool calls to the client.deleteTag handler method with the id argument
    case 'n8n_delete_tag':
      return client.deleteTag(args.id);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/node2flow-th/n8n-management-mcp-community'

If you have feedback or need assistance with the MCP directory API, please join our Discord server