---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Remove AD Object activity

# Remove AD Object activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Remove AD Object activity deletes an object from Windows Active
Directory.
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom ActivitiesActive Directory.  
Hinweis:  
This activity replaces an AD activity by the same name available in prior releases. If you have a workflow that uses the deprecated activity, your workflow will continue to work normally after upgrading to Instanbul. However, all new workflows must use the custom version of this activity, which was built with the [PowerShell activity designer](https://servicenow-prod.fluidtopics.net/MjnUEg~6RmXMwQSzlAKDTA "PowerShell activities are configured to return data to a workflow from a host using Microsoft PowerShell.").

## Input variables

{#r_RemoveADObject__table_pm1_lph_dp__entry__2}

| Variable | Description |
|-|-|
| DomainController | IP address of the domain controller machine. |
| ObjectName | The sAMAccountName of the Active Directory object. |
| Type | The object type to remove: * user * group * computer {#r_RemoveADObject__ul_kk4_32p_rt} |
[Tabelle : 1. Remove AD Object input variables]

{#r_RemoveADObject__table_pm1_lph_dp}

## Output variables

{#r_RemoveADObject__table_g5s_421_ts__entry__2}

| Variable | Description |
|-|-|
| result | Either success or failure. |
| errorMessage | The executionResult.errorMessages from the [Activity designer parsing sources](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). |
[Tabelle : 2. Remove AD Object output variables]

{#r_RemoveADObject__table_g5s_421_ts}

## Conditions

{#r_RemoveADObject__table_cpb_v21_ts__entry__2}

| Condition | Description |
|-|-|
| Success | AD object was successfully removed. |
| Failure | An error occurred while attempting to remove the AD object. Additional details may be available in the workflow log. |
[Tabelle : 3. Remove AD Object conditions]

{#r_RemoveADObject__table_cpb_v21_ts}

