When a user is removed from the system, you must ensure that the user's home directory and any objects that the user owns are also deleted. As an alternative to deleting objects that are owned by the user, you might change the ownership of these objects to a valid user.
You must also ensure that all batch jobs that are associated with the user are also deleted. No objects or processes belonging to a removed user can remain on the system.
Before You Begin
You must be in the System Administrator role in the global zone.
# userdel -r jdoe
For further considerations, see User Deletion Practices.