delete-theme-files
Deletes up to 50 specified files from a Shopify theme in one request, enabling cleanup of unused or unwanted theme assets. Requires write_themes scope and production app exemption.
Instructions
Delete theme files. Supports up to 50 files per request. Note: Requires write_themes scope and Shopify exemption for production apps.
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": {
"themeId": "<themeId>",
"files": "<files>"
},
"name": "delete-theme-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Filenames to delete (max 50 per request) | |
| themeId | Yes | Theme ID or GID |