delete_app
Remove an application from your Codemagic account by providing its application ID.
Instructions
Delete an application from Codemagic.
Args: app_id: The Codemagic application ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes |
Implementation Reference
- codemagic_mcp/tools/apps.py:36-44 (handler)The MCP tool handler for 'delete_app'. Decorated with `@mcp.tool(annotations=ToolAnnotations(destructiveHint=True))`, calls `client.delete_app(app_id)`.
@mcp.tool(annotations=ToolAnnotations(destructiveHint=True)) async def delete_app(app_id: str) -> Any: """Delete an application from Codemagic. Args: app_id: The Codemagic application ID. """ async with CodemagicClient() as client: return await client.delete_app(app_id) - codemagic_mcp/client.py:81-82 (helper)The HTTP client method that performs the DELETE request to /apps/{app_id}.
async def delete_app(self, app_id: str) -> Any: return await self._delete(f"/apps/{app_id}") - codemagic_mcp/tools/__init__.py:6-12 (registration)The tool registration entry point: `register_all_tools(mcp)` calls `apps.register(mcp)`, which registers delete_app via the decorator.
def register_all_tools(mcp: FastMCP) -> None: apps.register(mcp) builds.register(mcp) artifacts.register(mcp) caches.register(mcp) variables.register(mcp) webhooks.register(mcp) - codemagic_mcp/server.py:43-43 (registration)Server calls `register_all_tools(mcp)` to register all tools including delete_app.
register_all_tools(mcp) - codemagic_mcp/tools/apps.py:36-36 (schema)The `delete_app` tool uses `app_id: str` as its single input parameter, defined in the function signature. It is annotated as destructive via ToolAnnotations.
@mcp.tool(annotations=ToolAnnotations(destructiveHint=True))