delete_private_key
Remove a private key from Coolify's secure storage to manage SSH access and enhance security by eliminating unused credentials.
Instructions
Delete a private key. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Private key UUID | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:456-458 (handler)The handler case in the main switch statement that executes the tool by requiring a 'uuid' parameter and calling the Coolify client DELETE /security/keys/{uuid} endpoint.case 'delete_private_key': requireParam(args, 'uuid'); return client.delete(`/security/keys/${args.uuid}`);
- src/tools/definitions.ts:660-671 (schema)The tool definition object specifying the name, description, and input schema (uuid required, confirm optional for dangerous ops). This is used for MCP tool registration.{ name: 'delete_private_key', description: 'Delete a private key. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Private key UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] } },
- src/tools/definitions.ts:61-61 (helper)Lists 'delete_private_key' as a dangerous operation requiring confirmation if COOLIFY_REQUIRE_CONFIRM=true.'delete_private_key',
- src/tools/definitions.ts:83-83 (helper)Provides the warning message displayed when confirmation is required for this dangerous operation.delete_private_key: 'This will permanently delete the private key. Make sure no servers are using it.',