n8n_delete_credential
Remove a credential from n8n by specifying its ID to manage access and maintain security in workflow automation.
Instructions
Delete a credential
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Credential ID to delete |
Implementation Reference
- src/n8n-client.ts:142-145 (handler)Implementation of the deleteCredential method which performs the actual API request to delete the credential.
async deleteCredential(id: string): Promise<any> { const response = await this.client.delete(`/credentials/${id}`); return response.data; } - src/index.ts:191-197 (handler)The tool call handler for n8n_delete_credential, responsible for parsing arguments and invoking the client method.
case 'n8n_delete_credential': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.deleteCredential(args.id as string); return { content: [{ type: 'text', text: `Credential ${args.id as string} deleted successfully` }], }; } - src/index.ts:626-636 (registration)Tool registration and input schema definition for n8n_delete_credential.
{ name: 'n8n_delete_credential', description: 'Delete a credential', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Credential ID to delete' }, }, required: ['id'], }, },