Delete

Marks the user profile object for deletion from Active Directory.

Syntax

void Delete()

Discussion

This method does not delete the user profile. After you mark an object for deletion, you must use the Commit method to commit changes to the user object to Active Directory. When the Commit method is executed, the UNIX profile is deleted from Active Directory to complete the operation.

Example

The following code sample illustrates using Delete in a script:

...  
'Get the zone object  
Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot")  
'Get the Active Directory user object  
set objUser = cims.GetUser("ajax.org/Users/pat.hu")  
'Get the UNIX profile for the user  
profile = objUser.UnixProfiles  
'Mark the user profile for deletion  
profile.Delete  
...