Deletes a user from the operating system of the node.

clusterctl node user delete -u <username> [--force]

For example:

$ clusterctl node user delete -u john
User john deleted

Specifically:

  • You can only delete users created with the clusterctl node user create command.
  • You can execute this command before Installing CSP.
  • You must repeat the command on all the installation nodes.
  • Removed users can still run commands that do not require sudo if they have an ongoing session. However, once logged out, they are no longer authorized to re-login.

See below for a description of each parameter.

-u, --username <username>

Delete the operating system user with the <username> name.

Exceptions: The command throws an error when:

  • <username> corresponds to a user that cannot be deleted, like:
    • The sysadmin root user.
    • A system user created by the operating system to run services and daemons.
  • No user with the <username> name exists in the node.

Mandatory: Yes.

--force

Remove the user even if it has processes running (the processes continue until completion).

Exceptions: The command throws an exception when this flag is omitted and the user has running processes.

Mandatory: No.