Skip to content

Unexpected error when deleting user

As shown in the screenshot, userdel -r can't delete the homedir which is not empty, hence the user delete will fail.

And we can't create a user with same name of the deleted one, because the group is not deleted together.

image.png

Edited by Curious