Deleting users in linux

I couldn't be bothered to spin up a VM for a Uni assignment and ended up adding a bunch of users and groups to my personal OS.

Below is a record of what I did as cleanup. The things I did were;
- create 4 users
- create 3 groups
- create some stuff in /srv (this is trivial to clean up)

I'm wondering if I may have missed anything with these steps. I'm not entirely familiar with user/group related stuff so I might have residual files laying around.

root@pop-os:/# userdel -rf stark
userdel: stark mail spool (/var/mail/stark) not found
root@pop-os:/# userdel -rf lannister
userdel: lannister mail spool (/var/mail/lannister) not found
root@pop-os:/# userdel -rf kit
userdel: kit mail spool (/var/mail/kit) not found
root@pop-os:/# userdel -rf nicky
userdel: nicky mail spool (/var/mail/nicky) not found
root@pop-os:/# su stark
su: user stark does not exist or the user entry does not contain all
the required fields
root@pop-os:/# su lannister
su: user lannister does not exist or the user entry does not contain
all the required fields
root@pop-os:/# su kit
su: user kit does not exist or the user entry does not contain all
the required fields
root@pop-os:/# su nicky
su: user nicky does not exist or the user entry does not contain all
the required fields
root@pop-os:/# groupdel acme-manager
root@pop-os:/# groupdel acme-employee
root@pop-os:/# groupdel acme-all
root@pop-os:/# getent group | grep -i "acme-manager"
root@pop-os:/# getent group | grep -i "acme-employee"
root@pop-os:/# getent group | grep -i "acme-all"
Was this page helpful?