Delete from server environment
apps_deleteDeletes files, databases and database users, cron jobs, Node.js and Python apps and keys of the server environment. Cannot 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": {
"action": "<action>",
"site_id": "<site_id>"
},
"name": "apps_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias of key_id. | |
| name | No | Database or database user short name. The username_ prefix is added for MySQL. | |
| path | No | File path relative to the environment home, without the /home/... prefix. Site folders live under domains/{selected_domain} (selected_domain from session, or list domains with files_list path=domains); status.domain is the technical account domain and may not be the folder you need. | |
| paths | No | Home-relative paths for delete or chmod. | |
| trash | No | Move to trash instead of deleting. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| dbuser | No | MySQL user. Prefixed with {username}_ when missing. | |
| key_id | No | Login key id. Defaults to main on create. Letters and digits only. | |
| params | No | Extra selector parameters. PHP extension changes were rejected on the uCoz test environment. env-vars (an object of names and texts) is taken by set and create; secret keys and variables are refused as in env_vars. set adds or changes the passed variables and keeps the other variables of the app as they are; MCP does not remove variables, and create refuses a folder that already holds an app. Secrets (passwords, bot tokens, API keys) are set by the site owner in the site control panel: Server scripts, tab Node or Python, Environment variables of the app; the code reads them from the environment (process.env, os.environ), and the app is restarted after a change. | |
| plugin | No | Language selector plugin: phpselector, nodejs_selector, python_selector. | |
| source | No | Home-relative source path. | |
| confirm | No | Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do. | |
| cron_id | No | Id of a cron job: jobs[].id of cron_list, such as 000. | |
| select0 | No | Alias of cron_id. | |
| site_id | Yes | Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose. | |
| sources | No | Home-relative paths for copy-to, move-to, or create-archive. | |
| app_root | No | Application directory relative to home, or /home/{username}/.... | |
| cron_ids | No | Ids of several cron jobs to delete (jobs[].id of cron_list). | |
| database | No | MySQL database. Prefixed with {username}_ when missing. | |
| interpreter | No | Selector interpreter: php, nodejs, or python. |