Skip to main content
Glama

n8n_delete_user

Remove a user from your n8n instance to revoke access immediately while preserving their workflows. Requires instance owner permissions.

Instructions

Remove user from n8n instance. Only available to instance owner. Cannot delete the owner account. Deleted users lose access immediately. Workflows created by this user remain intact.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser ID to permanently delete (not email)

Implementation Reference

  • The deleteUser method that implements the tool logic - makes a DELETE request to the n8n API endpoint /users/{id}
    async deleteUser(id: string) {
      return this.request(`${this.apiBase}/users/${id}`, { method: 'DELETE' });
    }
  • Tool definition with input schema requiring an 'id' parameter (string) and annotations indicating it's a destructive operation
      name: 'n8n_delete_user',
      description: 'Remove user from n8n instance. Only available to instance owner. Cannot delete the owner account. Deleted users lose access immediately. Workflows created by this user remain intact.',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'User ID to permanently delete (not email)' },
        },
        required: ['id'],
      },
      annotations: {
        title: 'Delete User',
        readOnlyHint: false,
        destructiveHint: true,
        idempotentHint: true,
        openWorldHint: true,
      },
    },
  • src/server.ts:83-84 (registration)
    Routes the 'n8n_delete_user' tool call to the client.deleteUser method with the id argument
    case 'n8n_delete_user':
      return client.deleteUser(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