/users/{name}
0.1.0Unchanged since publicationDelete a user account and its resources
usersallAdministrators can delete other accounts. Resellers can delete their own customers' accounts. A request to delete your own account returns 400. Deleting a reseller requires reassigning all their customers to the administrator or another reseller first. UrbeStack refuses to delete the last administrator.
Deletion removes the account's domains, subdomains, DNS zones, databases, database users, FTP accounts, SSH keys, protected folder access settings and cron jobs, and updates the mail configuration. Deleting a reseller also removes their packages. For customers and resellers, UrbeStack ends active sessions and removes the Linux account and its home directory. It stops any remaining processes under the account if they prevent removal.
The entire deletion fails if the Linux account has an unexpected home directory or lacks the marker identifying it as created by UrbeStack.
As a command
Run as root on the serverParameters
namepath ·UsernameRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X DELETE "$API/users/alice" \ -H "Authorization: Bearer $TOKEN"
200 OKErrors
16 errors, each a status and a sentence400Cannot delete the last admin400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved400You cannot delete your own account401Authentication required404Domain '<name>' not found404Setting '<key>' not found404User '<name>' not found409<name> owns <owned> urbestack.com/docs/api/delete-users-name/