Delete service files
delete_service_filesPermanently deletes 1–100 files or directories on a VPSnet service order; use recursive mode for non-empty directories and confirm only user-approved paths.
Instructions
Permanently delete 1-100 files or directories (no recycle bin). A non-empty directory needs recursive=true; a recursive delete never leaves the path's file system, never follows links and always runs as an operation this tool follows for waitSeconds (default 60). /, top-level and operating-system directories are refused. Set confirm=true only after the user approved deleting exactly these paths. Requires files:manage on a FULL-access API key as an explicit grant; the hosted connector needs vm:files:write. Execution-equivalent targets (authorized_keys, cron, systemd units, sudoers, PAM, profile files) are refused to every API key (filesExecEquivalentScopeMissing). Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.
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": {
"orderNo": "<orderNo>",
"paths": "<paths>",
"confirm": "<confirm>"
},
"name": "delete_service_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| confirm | Yes | The user approved deleting exactly these paths | |
| orderNo | Yes | Tenant-owned service order number, e.g. VP12345 | |
| recursive | No | ||
| waitSeconds | No | How long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60) | |
| confirmSystemPath | No | Set true only after the user explicitly approved changing this operating-system path (otherwise 409 filesSystemPathConfirmRequired) |