delete_user
Permanently removes a Nextcloud user, including their files and team memberships, requiring admin privileges. Use account disabling instead to block access without deleting data.
Instructions
Permanently delete a Nextcloud user. Requires admin privileges.
This cannot be undone. The user's data and files will be removed. The user also leaves every team, which deletes the teams they own that have no other member (a pending invitation counts as one), with those teams' team folders and their files (Nextcloud 35+ with the Team folders app). To only block access, disable the account with set_user_enabled instead.
Args: user_id: The user ID to delete.
Returns: Confirmation message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |