Remove a user, and all files owned by them

deluser

  • Delete a user from the system.
    More information: <https://manpages.debian.org/latest/adduser/deluser.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo deluser --remove-all-files {{username}}

click the source code to copy install deluser on any operating system with command-not-found.com