Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_delete_execution

Remove 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • 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 }
          };
        }
      );

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/DrBalls/n8n-mcp-server-v2'

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