[CentOS] Deleting a user?

Sat Dec 1 23:16:48 UTC 2007
Amos Shapira <amos.shapira at gmail.com>

Hello,

I've compiled linux-ha heartbeat into an RPM but when I try to install
it (after "yum erase heartbeat*") it complains that the user hacluster
still exists:

# rpm -ivh heartbeat-2.1.2-1.x86_64.rpm
Preparing...                ########################################### [100%]
useradd: user hacluster exists
error: %pre(heartbeat-2.1.2-1.x86_64) scriptlet failed, exit status 9
error:   install: %pre scriptlet failed (2), skipping heartbeat-2.1.2-1

I ran "userdel -r hacluster" which just disabled the user login then
edited /etc/passwd and /etc/shadow to remove this user completely, but
I still get this error.

What else can I do to remove this user and help useradd succeed? I'd
rather not force script-skipping if at all possible.

Thanks,

--Amos