Delete draft file
delete_draft_fileDelete a theme file from a Fudge draft, or stage removal of an item by its .entities path. Fudge refuses deletions that would break references. Publishing applies the removal; until then it can be undone.
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": {
"draft": "<draft>",
"path": "<path>"
},
"name": "delete_draft_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A theme file such as sections/main-product.liquid or templates/product.json, or a content document such as .entities/product/123.jsonc or .entities/page/45.body.html. | |
| draft | Yes | The draft’s fudge://project/… ref. | |
| store | No | The connected store to use. Omit when only one is connected. |