Skip to main content
Glama

delete_cache

Remove a specific build cache for a Codemagic application to free storage space and resolve cache-related issues by providing the app ID and cache ID.

Instructions

Delete a specific build cache for a Codemagic application.

Args: app_id: The Codemagic application ID. cache_id: The cache ID to delete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYes
cache_idYes

Implementation Reference

  • The MCP tool registration and handler for `delete_cache`. It calls the `CodemagicClient.delete_cache` method.
    @mcp.tool(annotations=ToolAnnotations(destructiveHint=True))
    async def delete_cache(app_id: str, cache_id: str) -> Any:
        """Delete a specific build cache for a Codemagic application.
    
        Args:
            app_id: The Codemagic application ID.
            cache_id: The cache ID to delete.
        """
        async with CodemagicClient() as client:
            return await client.delete_cache(app_id, cache_id)
  • The underlying API client method that performs the actual HTTP DELETE request to the Codemagic API to delete a cache.
    async def delete_cache(self, app_id: str, cache_id: str) -> Any:
        return await self._delete(f"/apps/{app_id}/caches/{cache_id}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgiMaulana/CodemagicMcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server