[CentOS] Delete local user/group but not LDAP one

Thu Nov 25 17:32:13 UTC 2021
Felix Natter <fnatter at gmx.net>

Dear fellow linux users,

I have a computer with a local user X that shadows an LDAP user of the
same name (and group).

I know I can use:
userdel X
groupdel X

but how do I make sure that the LDAP is not changed, and only the local
user/group is deleted? This is very critical.

Many Thanks and Best Regards,
-- 
Felix Natter