n8n_delete_project
Remove a project and all associated workflows and credentials from n8n automation platform using the project ID.
Instructions
Delete a project.
⚠️ WARNING: All workflows and credentials in this project will be affected!
Args:
id (string): Project ID to delete
Returns: Confirmation of deletion.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/projects.ts:162-191 (handler)The registration and handler implementation for the n8n_delete_project tool. It uses the `del` helper to call the n8n API.
server.registerTool( 'n8n_delete_project', { title: 'Delete n8n Project', description: `Delete a project. ⚠️ WARNING: All workflows and credentials in this project will be affected! Args: - id (string): Project 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(`/projects/${params.id}`); return { content: [{ type: 'text', text: `✅ Project ${params.id} deleted successfully.` }], structuredContent: { deleted: true, id: params.id } }; } );