Proper way to delete a domain?

First let me apologize if this has been answered many times.. but i did search through the forums and could not find the info i need.

I have successfully removed all users (cals and PAB) entries for a domain. Now i want to remove the domain from the server.

I have used the following commands.. and they complete successfully.. no errors...

commadmin domain delete -D user -w password -d domain

commadmin domain purge -D user -w password -d domain -g 0

Both succeed.. but when i do a msuserpurge -v -d domain

i still see the domain.. and if i ldapsearch for the domain.. i still see the top entry o=domain etc.

I notice that the mailDomainStatus is still showing "active"

I can ldapmodify the mailDomainStatus to "removed" but not sure if this will then allow the purge command to totally remove the domain?

--additional info:

Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)

the domain i am trying to remove is not the default domain.

--

Thanks for any assistance.

Message was edited by:

callenj98

[1113 byte] By [callenj98] at [2007-11-26 9:36:02]
# 1
Alas, the problem is that your commadmin command has a bug. Later patches do fix it.Setting the mailDomainStatus to "removed" may work, until you can patch your server.
jay_plesset at 2007-7-7 0:27:37 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

thank you Jay. Was going to patch.. but found a note from you about a bug in the latest patch.. so was gonna wait till the next patch rev. came out. think it was something to do with a session problem.

So if i manually ldapdelete the o=domainname entry.. that should be fine right? I do not see an sub entries for the domain left over. Or any users/groups.

thanks again.

callenj98 at 2007-7-7 0:27:37 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
The session issue is with SSO, and can be easily worked around. It's only when you apply patch -51 of the UWC in any case. The workaround is to pull the libamsdk.so.2 file from a previous patch, and replace that.Yes, removing the domain from your ldap should be fine.
jay_plesset at 2007-7-7 0:27:37 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4
awesome. thank you.
callenj98 at 2007-7-7 0:27:37 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...