Delete from server environment
apps_deleteDeletes files, databases and database users, FTP accounts, cron jobs, Node.js and Python apps and keys of the server environment. Cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias of key_id. | |
| name | No | Database, database user, or FTP 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. | |
| user | No | FTP username without @domain. | |
| 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. | |
| domain | No | Environment domain for an app, FTP account, or backup form. Defaults to selected_domain, not a file path. | |
| 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. | |
| plugin | No | Language selector plugin: phpselector, nodejs_selector, python_selector. | |
| source | No | Home-relative source path. | |
| confirm | Yes | Pass true only after the user approves this change. Required by: node_destroy, python_destroy, selector_destroy, files_delete, db_delete, db_delete_user, ftp_delete, cron_delete, login_key_delete, da_login_key_delete, visitor_key_delete. | |
| cron_id | No | Id of a cron job: jobs[].id of cron_list, such as 000. | |
| select0 | No | FTP account to delete: the short username from ftp_list. user@domain is accepted and the domain part is dropped. Also an alias of cron_id. | |
| 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. |