delete_theme_files
Delete one or more files from a Shopify theme by filename. Requires write_themes access scope.
Instructions
Delete one or more files from a theme by filename. Requires write_themes access scope.
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": {
"theme_id": "<theme_id>",
"filenames": "<filenames>"
},
"name": "delete_theme_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme_id | Yes | The GID of the theme (e.g. 'gid://shopify/OnlineStoreTheme/123'). | |
| filenames | Yes | Filenames of the files to delete (e.g. ['assets/old.css', 'sections/deprecated.liquid']). |