Delete file
delete_fileDeletes one file, or a folder once it's empty, from a Pagehaus site, using the Pagehaus files API (https://pagehaus.app/help/api). path is a file or folder inside the site, such as "/old-page.html". The deletion is permanent.
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>",
"path": "<path>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path from the site's top, e.g. "/old-page.html". | |
| site | Yes | The site name. |