delete_application_env
Remove an environment variable from an application in Coolify to manage configuration settings and maintain application security.
Instructions
Delete an environment variable from an application
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Application UUID | |
| env_uuid | Yes | Environment variable UUID |
Implementation Reference
- src/tools/handlers.ts:282-285 (handler)Handler implementation for the delete_application_env tool. Validates required parameters (application uuid and env_uuid) and calls the CoolifyClient delete method on the appropriate API endpoint.case 'delete_application_env': requireParam(args, 'uuid'); requireParam(args, 'env_uuid'); return client.delete(`/applications/${args.uuid}/envs/${args.env_uuid}`);
- src/tools/definitions.ts:911-922 (schema)Input schema and metadata definition for the delete_application_env tool, defining the required parameters and description.{ name: 'delete_application_env', description: 'Delete an environment variable from an application', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, env_uuid: { type: 'string', description: 'Environment variable UUID' } }, required: ['uuid', 'env_uuid'] } },
- src/index.ts:36-38 (registration)Registration of all tools (including delete_application_env) via getToolDefinitions() in the MCP server's list tools handler.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-59 (registration)Tool call dispatching to handleTool (which contains the specific handler case) in the MCP server's call tool handler.const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }]