• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

“userdel: user xxx is currently used by process yyy” – Unable to delete an User

by admin

The Problem

Unable to remove a user and userdel throws the below error:

# userdel -r username
userdel: user username is currently used by process xxx

The Solution

New child processes are being created every time the ‘userdel’ command is run and hence unable to remove the user.

You can use the below commands to forcefully remove the user.

# killall -TERM -u username
# userdel -f username

The -f would forcefully remove this user, including the user’s home directory/mail (if any). So, use this option only if you are aware of what gets removed for this specific user. When using -f option, you need not use the -r option.

Filed Under: Linux

Some more articles you might also be interested in …

  1. nmcli networking Command Examples
  2. fuser: command not found
  3. SSH Authentication Files in Linux
  4. tc: command not found
  5. CentOS / RHEL : Resize (extend) non-root EXT3/4 filesystem on LVM device
  6. uname: command not found
  7. wall: command not found
  8. llvm-as Command Examples
  9. mh_metric Command Examples
  10. brittany: Pretty-print Haskell source files

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright