System Grab Bag

View all TLDR pages from Linux (or from all pages)

deluser

Delete a user from the system. More information: https://manpages.debian.org/latest/adduser/deluser.html.
  • Remove a user:
    sudo deluser {{username}}
  • Remove a user and their home directory:
    sudo deluser --remove-home {{username}}
  • Remove a user and their home, but backup their files into a .tar.gz file in the specified directory:
    sudo deluser --backup-to {{path/to/backup_directory}} --remove-home {{username}}
  • Remove a user, and all files owned by them:
    sudo deluser --remove-all-files {{username}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.