n8n_delete_user
Remove a user account from n8n by specifying the user ID. This administrative action permanently deletes user access and data.
Instructions
Delete a user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | User ID to delete |
Implementation Reference
- src/n8n-client.ts:225-228 (handler)The core implementation of the delete user operation in the N8nClient class.
async deleteUser(id: string): Promise<any> { const response = await this.client.delete(`/users/${id}`); return response.data; } - src/index.ts:316-322 (handler)The MCP tool handler logic that calls n8nClient.deleteUser.
case 'n8n_delete_user': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.deleteUser(args.id as string); return { content: [{ type: 'text', text: `User ${args.id as string} deleted successfully` }], }; } - src/index.ts:796-805 (registration)The registration of the n8n_delete_user tool, including its input schema definition.
name: 'n8n_delete_user', description: 'Delete a user', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'User ID to delete' }, }, required: ['id'], }, },