n8n_delete_project
Remove a project from n8n by specifying its ID to manage workflow organization and clean up unused resources.
Instructions
Delete a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Project ID to delete |
Implementation Reference
- src/index.ts:357-363 (handler)MCP tool handler that calls n8nClient.deleteProject.
case 'n8n_delete_project': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.deleteProject(args.id as string); return { content: [{ type: 'text', text: `Project ${args.id as string} deleted successfully` }], }; } - src/n8n-client.ts:252-254 (helper)Implementation of the n8n API call to delete a project.
async deleteProject(id: string): Promise<any> { const response = await this.client.delete(`/projects/${id}`); return response.data; - src/index.ts:852-862 (registration)Tool registration for n8n_delete_project.
{ name: 'n8n_delete_project', description: 'Delete a project', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Project ID to delete' }, }, required: ['id'], }, },