viya_files_delete
Deletes one file or empty folder on SAS Viya after confirmation, with version and protected-folder checks; non-empty folders return not_empty.
Instructions
Delete one file, or one empty folder, on SAS Viya ("content" or "server"); the app confirms first.
Same checks as viya_files_rename (version / If-Match, protected folders); a folder that isn't empty answers
``not_empty``. SQL Editor tabs that had the file open keep its text as unsaved.
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": {
"location": "<location>",
"path": "<path>"
},
"name": "viya_files_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| location | Yes | ||
| expected_modified | No |