As shown in the screenshot, userdel -r can't delete the homedir which is not empty, hence the user delete will fail.
userdel -r
And we can't create a user with same name of the deleted one, because the group is not deleted together.