Delete n8n Execution
n8n_delete_executionRemove a specific workflow execution by ID to manage automation history. This action cannot be undone, so use it to delete completed or failed executions.
Instructions
Delete a specific execution by ID.
⚠️ WARNING: This action cannot be undone!
Args:
id (string): Execution ID to delete
Returns: Confirmation of deletion.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "n8n_delete_execution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/executions.ts:146-175 (handler)The registration and handler implementation for the 'n8n_delete_execution' tool. It uses the `IdParamSchema` for input validation and calls the `del` service to perform the API request.
server.registerTool( 'n8n_delete_execution', { title: 'Delete n8n Execution', description: `Delete a specific execution by ID. ⚠️ WARNING: This action cannot be undone! Args: - id (string): Execution 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(`/executions/${params.id}`); return { content: [{ type: 'text', text: `✅ Execution ${params.id} deleted successfully.` }], structuredContent: { deleted: true, id: params.id } }; } );