Delete Active Directory Object Action



See Also

Delete AD Object-Setting Properties, Create AD Object Action, Create AD User Action, Create AD Group Action


Deletes an Active Directory object (i.e. user, computer, printer, etc.) at the specified path.

Practical Usage

See Description.


General Tab


Text, Required
MARKUP: LDAPPATH="LDAP://OU=TestCases,DC=networkautomation,DC=com"

Specifies the LDAP (Lightweight Directory Access Protocol) path of the Active Directory object to delete.

Click the Select Container button to launch a standard Windows Active Directory dialog box that allows for the selection an Active Directory container.

Click the Select Object button launches a standard Windows Active Directory dialog box that allows for the selection of an Active Directory object (i.e. user, computer, printer, etc.) to delete.

Credentials Tab


Text, Optional

Specifies the username of the Active Directory user


Text, Optional

Specifies the password of the Active Directory user.

NOTE: Leave the Username and Password fields blank in order to use the logon user's credentials. If only accessing Active Directory information, then any Domain user is valid. However, a Domain Administrator is required in order to modify an Active Directory user or group. We recommend using the credentials of a Domain Administrator for all AutoMate Active Directory actions.

See the following link for more information.


Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder


NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

<AMDELETEADOBJECT LDAPPATH="LDAP://,CN=Users,DC=networkautomation,DC=com" USERNAME="administrator" PASSWORD="password" />