delete_variable
Remove environment variables from Codemagic applications to manage configuration and maintain security by eliminating unused or sensitive data.
Instructions
Delete an environment variable from a Codemagic application.
Args: app_id: The Codemagic application ID. variable_id: The variable ID to delete.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| variable_id | Yes |
Implementation Reference
- codemagic_mcp/tools/variables.py:76-84 (handler)The MCP tool handler for 'delete_variable', which calls the underlying client method.
async def delete_variable(app_id: str, variable_id: str) -> Any: """Delete an environment variable from a Codemagic application. Args: app_id: The Codemagic application ID. variable_id: The variable ID to delete. """ async with CodemagicClient() as client: return await client.delete_variable(app_id, variable_id) - codemagic_mcp/client.py:315-316 (handler)The underlying API client method that performs the actual HTTP DELETE request to Codemagic.
async def delete_variable(self, app_id: str, variable_id: str) -> Any: return await self._delete(f"/apps/{app_id}/variables/{variable_id}")