Skip to main content
Glama

delete_workflow

Remove workflows from n8n automation platform by specifying the workflow ID to manage your automation processes effectively.

Instructions

Delete an n8n workflow

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • src/index.ts:73-73 (registration)
    Registration of the 'delete_workflow' tool in the listTools handler, including the input schema definition.
    { name: 'delete_workflow', description: 'Delete an n8n workflow', inputSchema: { type: 'object', properties: { id: { oneOf: [{ type: 'string' }, { type: 'number' }] } }, required: ['id'] } },
  • Main handler function that resolves the ID alias and calls the N8nClient to delete the workflow.
    private async handleDeleteWorkflow(args: { id: string | number }) { const id = this.resolveWorkflowId(args.id); await this.n8nClient.deleteWorkflow(id); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess({ id: args.id }), null, 2) }] };
  • N8nClient helper method that executes the actual DELETE /workflows/{id} API request.
    async deleteWorkflow(id: string | number): Promise<void> { await this.api.delete(`/workflows/${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/get2knowio/n8n-mcp'

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