Skip to main content

Delete

Delete a user account:

$ osapi client node user delete --target web-01 --name deploy

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME STATUS CHANGED NAME
web-01 changed true deploy

1 host: 1 changed

Broadcast to all hosts:

$ osapi client node user delete --target _all --name deploy

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME STATUS CHANGED NAME
web-01 changed true deploy
web-02 changed true deploy
mac-01 skip

3 hosts: 2 changed, 1 skipped

Details:
mac-01 unsupported platform

Flags

FlagDescriptionDefault
-T, --targetTarget: _any, _all, hostname, or label (group:web)_all
--nameName of the user account to delete (required)
-j, --jsonOutput raw JSON response