delete_cache
Delete build caches for a Codemagic app. Specify a cache ID to remove a specific workflow cache, or omit to clear all caches. Action is asynchronous.
Instructions
Delete a build cache for a Codemagic app. If cache_id is provided, deletes that specific workflow cache. If omitted, deletes all caches for the app. Deletion is asynchronous — the API returns immediately and completes in the background.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>"
},
"name": "delete_cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The Codemagic app ID | |
| cache_id | No | Specific cache ID to delete (from list_caches). If omitted, all caches are deleted. |