The commadmin domain purge command finds all user entries in the specified domain(s) where inetUserStatus is set to deleted. The utility then takes the following actions:
If a user's mail and calendar services have been removed (that is, if the mailUserStatus and icsStatus attributes are set to removed), commadmin domain purge permanently removes the user entry from the directory.
If either mailUserStatus or icsStatus for a user is not set to removed (for example, if one attribute is still set to deleted), commadmin domain purge does not purge the user entry.
If one service attribute is set to removed but the other is not, commadmin domain purge purges the removed service, including all that service's attributes, from the user entry. It leaves the other service's attributes intact, and it leaves the user entry in the directory.
These actions prevent a mailbox or calendar from being orphaned. The user's mailbox and calendar must be removed before commadmin domain purge will remove the user entry from the directory.