CLI reference / host / user / delete

stado host user delete

Invocation

stado host user delete [OPTIONS] --target <TARGET> --confirm <CONFIRM> <USERNAME>

Purpose

Delete USERNAME from a registry-managed host over SSH. The account, and its home directory unless --keep-home, cannot be restored, so the username is repeated with --confirm

Required inputs and options

Input or optionContract
<USERNAME>Positional input; required or optional as shown in the invocation.
--target <TARGET>Registry target name
--keep-homeLeave the home directory in place
--confirm <CONFIRM>The username again; anything else is refused before the host is contacted
--jsonEmit the outcome as JSON

Output and state effect

It performs the operation described above and emits its operator result on standard output or standard error. Any state change is limited to the resources and records named by the purpose and options on this page.

Refusals

  • The username again; anything else is refused before the host is contacted
  • Before dispatch, Stado refuses a missing required token shown in the invocation, an unknown option, or a value outside a listed value set; argument-usage failures exit with code 2.