n8n_delete_execution
Remove workflow executions from n8n by specifying an execution ID to manage execution history and maintain system performance.
Instructions
Delete an execution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Execution ID to delete |
Implementation Reference
- src/n8n-client.ts:125-128 (handler)The N8nClient method that performs the actual API call to delete an execution.
async deleteExecution(id: string): Promise<any> { const response = await this.client.delete(`/executions/${id}`); return response.data; } - src/index.ts:164-170 (handler)The tool handler in the main MCP entry point that receives the request and calls the N8nClient.
case 'n8n_delete_execution': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.deleteExecution(args.id as string); return { content: [{ type: 'text', text: `Execution ${args.id as string} deleted successfully` }], }; } - src/index.ts:591-599 (schema)The tool registration definition which includes the input schema for the n8n_delete_execution tool.
name: 'n8n_delete_execution', description: 'Delete an execution', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Execution ID to delete' }, }, required: ['id'], },