Forrest logo
back to the deluser tool

deluser:tldr:e1f1c

deluser: Remove a user.
$ sudo deluser ${username}
try on your machine

The command "sudo deluser ${username}" is used to delete a user account on a Linux system.

Here's a breakdown of each component in the command:

  • "sudo": It stands for "superuser do" and is used to execute the following command with administrative privileges. This allows the user to make changes on the system that require elevated permissions.

  • "deluser": It is the command that is used to delete a user account. When used with "sudo", it allows the administrator to delete a user account on the system.

  • "${username}": It is a placeholder for the actual username that you want to delete. You need to replace "${username}" with the specific username you want to remove. For example, "sudo deluser john" will delete the user account named "john".

When you run this command with the appropriate username and administrative privileges (sudo), it will delete the specified user account from the system, including their home directory and any associated files.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the deluser tool