bhatti user delete
bhatti user delete server only
Section titled “bhatti user delete ”Delete a user.
Synopsis
Section titled “Synopsis”sudo bhatti user delete <name> [-y]
Description
Section titled “Description”Removes the user record. The user’s API key stops working immediately.
Fails if the user has active (non-destroyed) sandboxes. Destroy them first:
sudo bhatti user list # find them via the user's sandbox count# (server-side — to list a specific user's sandboxes you need the SQL or the user's API key)Volumes, secrets, snapshots, and images owned by the user remain on disk after the user is deleted (orphaned). A future --purge mode could clean these up; for now, manual cleanup is required if you want to reclaim the space.
By default, prompts for confirmation. In a non-interactive shell without -y, the command refuses and exits 1.
Records a user.deleted event in the audit log.
Examples
Section titled “Examples”sudo bhatti user delete aliceDelete user "alice"? [y/N]: ydeleted user "alice"# Active sandboxes still aroundsudo bhatti user delete aliceError: user "alice" has 3 active sandbox(es)Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
-y, --yes | false | Skip confirmation. |
See Global flags for --url, --token, --json, --timing, --data-dir.
See also
Section titled “See also”bhatti user listbhatti user rotate-key— usually a better answer than delete