Delete a HomeyScript script
homey_script_deleteDelete a Homey script permanently, halting its flows, and receive the script code to restore it if needed.
Instructions
Removes a script from the Homey. It is gone: there is no undo, and any Flow that started it stops working. The code is returned in the result, so it can be recreated from this answer if that turns out to be a mistake.
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": {
"script": "<script>"
},
"name": "homey_script_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The script id, or its exact name. |