Delete a theme file
delete_theme_fileOn one site of the account, named in site. Removes one file from the theme, as a commit in the person's name, live like any write once the theme is whole — the way to drop a partial or an asset inherited from the theme a copy was made of, rather than blanking it. A template still rendering the file holds the change until it no longer does; the history keeps the file either way. The manifest and the required templates (index.liquid, post.liquid) are refused: rewrite those instead. Admins only.
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": {
"site": "<site>",
"theme": "<theme>",
"path": "<path>"
},
"name": "delete_theme_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file inside the theme, like partials/old.liquid | |
| site | Yes | The site to work on, as list_sites names it | |
| theme | Yes |