users

CLI REST-API

delete-user

delete-user [name]
The "delete-user" command removes a user account. You have to specify the login
name for the account.

Please note that in order to make this removal persistent, you have to use the
"write" command to save the changes to the flash of your system.

RESTAPI: The data can be passed in the body like this:
{
    "parameters": {
        "name": "bob"
    }
}
NameValueDescriptionExample
namebob
See also:
/users: users
/users/add-user: creates a new user on the local system
/users/show-user: shows the information stored for a given user account

REST-API Support:


This command is supported by the REST API:

Method: DELETE
URL: /api/users/delete-user
Body:
{
    "parameters": {
        "name": [name]
    }
}

Example using curl:
curl -X DELETE /api/users/delete-user -d 
"{
    \"parameters\": {
        \"name\": \"bob\"
    }
}"