# urbestack-user-del

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-user-del --name NAME
```

## Description

Deletes an UrbeStack account and its domains, subdomains, DNS zones, databases and database users. It updates the mail configuration and removes the account's FTP accounts, SSH keys, protected folder access settings and cron jobs. For a customer or reseller, it ends active sessions and removes the Linux account and its home directory. It stops remaining processes under that 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. The command refuses to delete the last administrator or a reseller who still owns customers. Move those customers to the administrator or another reseller first. The reseller's own packages are deleted with the reseller.

## Same in the API

- [DELETE /users/{name}](https://urbestack.com/docs/api/delete-users-name.md): Delete a user account and its resources

## Command family: user

- [urbestack-user-add](https://urbestack.com/docs/commands/urbestack-user-add.md): Creates an UrbeStack account.
- [urbestack-user-list](https://urbestack.com/docs/commands/urbestack-user-list.md): Lists UrbeStack accounts.
- [urbestack-user-second-factor-codes](https://urbestack.com/docs/commands/urbestack-user-second-factor-codes.md): Replaces the user's recovery codes with eight new codes and prints them once.
- [urbestack-user-second-factor-confirm](https://urbestack.com/docs/commands/urbestack-user-second-factor-confirm.md): Confirms a pending second factor using the authenticator app's six-digit code supplied with --code.
- [urbestack-user-second-factor-enrol](https://urbestack.com/docs/commands/urbestack-user-second-factor-enrol.md): Starts enrolment of a TOTP second factor and prints the secret as text and as an otpauth:// URI for an authenticator app.
- [urbestack-user-set](https://urbestack.com/docs/commands/urbestack-user-set.md): Updates an existing UrbeStack account.
